docs.unity3d.com
    显示 / 隐藏目录

    Struct ProxyAlignmentForceScaling

    Scales how an alignment force is applied to an object

    Namespace: Unity.MARS.Forces
    Syntax
    [Serializable]
    public struct ProxyAlignmentForceScaling

    Constructors

    ProxyAlignmentForceScaling(Single, Single)

    Declaration
    public ProxyAlignmentForceScaling(float moveForce, float rotationForce)
    Parameters
    Type Name Description
    Single moveForce
    Single rotationForce

    Fields

    Default

    Declaration
    public static ProxyAlignmentForceScaling Default
    Field Value
    Type Description
    ProxyAlignmentForceScaling

    movementScale

    Declaration
    [Range(0F, 2F)]
    [Tooltip("Scales the effect on position of the force. 0 for no effect, 1 for default, etc.")]
    public float movementScale
    Field Value
    Type Description
    Single

    rotationScale

    Declaration
    [Range(0F, 2F)]
    [Tooltip("Scales the effect on rotation of the force. 0 for no effect, 1 for default, etc.")]
    public float rotationScale
    Field Value
    Type Description
    Single
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)