Search Results for

    Show / Hide Table of Contents

    Class D6JointDriveType

    Type of drives that can be used for moving or rotating bodies attached to the joint.

    Inheritance
    System.Object
    D6JointDriveType
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public sealed class D6JointDriveType : Enum
    Remarks

    Each drive is an implicit force-limited damped spring: force = spring * (target position - position) + damping * (targetVelocity - velocity)

    Alternatively, the spring may be configured to generate a specified acceleration instead of a force.

    A linear axis is affected by drive only if the corresponding drive flag is set.There are two possible models for angular drive : swing / twist, which may be used to drive one or more angular degrees of freedom, or slerp, which may only be used to drive all three angular degrees simultaneously.

    Fields

    Slerp

    Rotation using spherical linear interpolation. Uses the SLERP angular drive mode which performs rotation by interpolating the quaternion values directly over the shortest path (applies to all three axes, which they all must be unlocked).

    Declaration
    public const D6JointDriveType Slerp
    Field Value
    D6JointDriveType

    Swing

    Rotation around the Y axis using the twist/swing angular drive model. Should not be used together with Slerp mode.

    Declaration
    public const D6JointDriveType Swing
    Field Value
    D6JointDriveType

    Twist

    Rotation around the Z axis using the twist/swing angular drive model. Should not be used together with Slerp mode.

    Declaration
    public const D6JointDriveType Twist
    Field Value
    D6JointDriveType

    value__

    Declaration
    public int value__
    Field Value
    System.Int32

    X

    Linear movement on the X axis using the linear drive model.

    Declaration
    public const D6JointDriveType X
    Field Value
    D6JointDriveType

    Y

    Linear movement on the Y axis using the linear drive model.

    Declaration
    public const D6JointDriveType Y
    Field Value
    D6JointDriveType

    Z

    Linear movement on the Z axis using the linear drive model.

    Declaration
    public const D6JointDriveType Z
    Field Value
    D6JointDriveType

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat