Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    Generic6DoFConstraint Class

    Namespace: Stride.Physics
    Assembly: Stride.Physics.dll
    System.Object → Constraint → Generic6DoFConstraint
    Derived from Generic6DoFConstraint: Generic6DoFSpringConstraint

    public class Generic6DoFConstraint : Constraint, IDisposable, IRelative
    Name Description
    Constructors
    Generic6DoFConstraint()

    Initializes a new instance of the Generic6DoFConstraint class.

    Properties
    AngularLowerLimit

    Gets or sets the angular lower limit.

    AngularUpperLimit

    Gets or sets the angular upper limit.

    LinearLowerLimit

    Gets or sets the linear lower limit.

    LinearUpperLimit

    Gets or sets the linear upper limit.

    RotationalLimitMotor

    Gets the rotational limit motor.

    TranslationalLimitMotor

    Gets the translational limit motor.

    Methods
    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    SetFrames(Matrix, Matrix)

    Sets the frames.

    SetLimit(Int32, Single, Single)

    Sets the limit.

    | Improve this Doc View Source

    Constructors


    Generic6DoFConstraint()

    Initializes a new instance of the Generic6DoFConstraint class.

    public Generic6DoFConstraint()
    | Improve this Doc View Source

    Properties


    AngularLowerLimit

    Gets or sets the angular lower limit.

    public Vector3 AngularLowerLimit { get; set; }
    Property Value
    Type Description
    Vector3

    The angular lower limit.


    AngularUpperLimit

    Gets or sets the angular upper limit.

    public Vector3 AngularUpperLimit { get; set; }
    Property Value
    Type Description
    Vector3

    The angular upper limit.


    LinearLowerLimit

    Gets or sets the linear lower limit.

    public Vector3 LinearLowerLimit { get; set; }
    Property Value
    Type Description
    Vector3

    The linear lower limit.


    LinearUpperLimit

    Gets or sets the linear upper limit.

    public Vector3 LinearUpperLimit { get; set; }
    Property Value
    Type Description
    Vector3

    The linear upper limit.


    RotationalLimitMotor

    Gets the rotational limit motor.

    public RotationalLimitMotor[] RotationalLimitMotor { get; }
    Property Value
    Type Description
    RotationalLimitMotor[]

    The rotational limit motor.


    TranslationalLimitMotor

    Gets the translational limit motor.

    public TranslationalLimitMotor TranslationalLimitMotor { get; }
    Property Value
    Type Description
    TranslationalLimitMotor

    The translational limit motor.

    | Improve this Doc View Source

    Methods


    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    public override void Dispose()
    Overrides
    Constraint.Dispose()

    SetFrames(Matrix, Matrix)

    Sets the frames.

    public void SetFrames(Matrix frameA, Matrix frameB)
    Parameters
    Type Name Description
    Matrix frameA

    The frame a.

    Matrix frameB

    The frame b.


    SetLimit(Int32, Single, Single)

    Sets the limit.

    public void SetLimit(int axis, float lo, float hi)
    Parameters
    Type Name Description
    System.Int32 axis

    The axis.

    System.Single lo

    The lo.

    System.Single hi

    The hi.


    Inherited Members

    Constraint.RigidBodyA
    Constraint.RigidBodyB
    Constraint.Enabled
    Constraint.BreakingImpulseThreshold
    Constraint.AppliedImpulse
    Constraint.Simulation

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation