Search Results for

    Show / Hide Table of Contents

    Class FlexalonRigidBodyCurveAnimator

    If you add a Rigid Body or Rigid Body 2D component a gameObject which is managed by Flexalon, then the physics system will fight with Flexalon over the object's position and rotation. Adding a Rigid Body animator will resolve this by applying forces to the the rigid body component instead of changing the transform directly.

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    FlexalonRigidBodyCurveAnimator
    Implements
    TransformUpdater
    Syntax
    [AddComponentMenu("Flexalon/Flexalon Rigid Body Curve Animator")]
    [HelpURL("https://www.flexalon.com/docs/animators")]
    public class FlexalonRigidBodyCurveAnimator : MonoBehaviour, TransformUpdater

    Properties

    AnimatePosition

    Determines if the position should be animated.

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

    AnimateRotation

    Determines if the rotation should be animated.

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

    AnimateScale

    Determines if the scale should be animated.

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

    Curve

    The curve to apply. Should begin at 0 and end at 1.

    Declaration
    public AnimationCurve Curve { get; set; }
    Property Value
    Type Description
    UnityEngine.AnimationCurve

    Methods

    PreUpdate(FlexalonNode)

    Called before the layout system starts updating any transforms. Use this to capture the transform position.

    Declaration
    public void PreUpdate(FlexalonNode node)
    Parameters
    Type Name Description
    FlexalonNode node

    The node being updated.

    UpdatePosition(FlexalonNode, Vector3)

    Called to update the position of the object.

    Declaration
    public bool UpdatePosition(FlexalonNode node, Vector3 position)
    Parameters
    Type Name Description
    FlexalonNode node

    The node being updated.

    UnityEngine.Vector3 position

    The computed local position of the object.

    Returns
    Type Description
    bool

    UpdateRectSize(FlexalonNode, Vector2)

    Called to update the rect of the object.

    Declaration
    public bool UpdateRectSize(FlexalonNode node, Vector2 size)
    Parameters
    Type Name Description
    FlexalonNode node

    The node being updated.

    Vector2 size
    Returns
    Type Description
    bool

    UpdateRotation(FlexalonNode, Quaternion)

    Called to update the rotation of the object.

    Declaration
    public bool UpdateRotation(FlexalonNode node, Quaternion rotation)
    Parameters
    Type Name Description
    FlexalonNode node

    The node being updated.

    UnityEngine.Quaternion rotation

    The computed local rotation of the object.

    Returns
    Type Description
    bool

    UpdateScale(FlexalonNode, Vector3)

    Called to update the scale of the object.

    Declaration
    public bool UpdateScale(FlexalonNode node, Vector3 scale)
    Parameters
    Type Name Description
    FlexalonNode node

    The node being updated.

    UnityEngine.Vector3 scale

    The computed local scale of the object.

    Returns
    Type Description
    bool

    Implements

    TransformUpdater
    In This Article
    Back to top Flexalon 3D Layouts