Search Results for

    Show / Hide Table of Contents

    Class D6JointDrive

    Specifies parameters for a drive that will attempt to move the joint bodies to the specified drive position and velocity.

    Inheritance
    System.Object
    D6JointDrive
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public sealed class D6JointDrive : ValueType

    Constructors

    D6JointDrive(Single, Single, Single, Boolean)

    Initializes a new instance of the D6JointDrive struct.

    Declaration
    public D6JointDrive(float stiffness, float damping, float forceLimit, bool acceleration)
    Parameters
    System.Single stiffness

    The stiffness.

    System.Single damping

    The damping.

    System.Single forceLimit

    The force limit.

    System.Boolean acceleration

    if set to true the drive will generate acceleration instead of forces.

    Fields

    Acceleration

    If true the drive will generate acceleration instead of forces. Acceleration drives are easier to tune as they account for the masses of the actors to which the joint is attached.

    Declaration
    public bool Acceleration
    Field Value
    System.Boolean

    Damping

    Damping strength. Force proportional to the velocity error.

    Declaration
    public float Damping
    Field Value
    System.Single

    ForceLimit

    The maximum force the drive can apply.

    Declaration
    public float ForceLimit
    Field Value
    System.Single

    Stiffness

    The spring strength. Force proportional to the position error.

    Declaration
    public float Stiffness
    Field Value
    System.Single

    Properties

    Default

    The default D6JointDrive.

    Declaration
    public static D6JointDrive Default { get; }
    Property Value
    D6JointDrive

    Extension Methods

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