docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DampedTransformData

    The DampedTransform constraint data.

    Implements
    IAnimationJobData
    IDampedTransformData
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Animations.Rigging
    Assembly: Unity.Animation.Rigging.dll
    Syntax
    [Serializable]
    public struct DampedTransformData : IAnimationJobData, IDampedTransformData

    Properties

    constrainedObject

    The Transform affected by the constraint Source Transform.

    Declaration
    public Transform constrainedObject { get; set; }
    Property Value
    Type Description
    Transform

    dampPosition

    Damp position weight. Defines how much of constrained object position follows source object position. Constrained position will closely follow source object when set to 0, and will not move when set to 1.

    Declaration
    public float dampPosition { get; set; }
    Property Value
    Type Description
    float

    dampRotation

    Damp rotation weight. Defines how much of constrained object rotation follows source object rotation. Constrained rotation will closely follow source object when set to 0, and will not move when set to 1.

    Declaration
    public float dampRotation { get; set; }
    Property Value
    Type Description
    float

    maintainAim

    Toggles whether damping will enforces aim.

    Declaration
    public bool maintainAim { get; set; }
    Property Value
    Type Description
    bool

    sourceObject

    The source Transform.

    Declaration
    public Transform sourceObject { get; set; }
    Property Value
    Type Description
    Transform

    Implements

    IAnimationJobData
    IDampedTransformData
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)