Class BulletSliderJoint3D
The BulletJoint3D is a base class for all 3D joints implemented by Bullet.
Inheritance
Inherited Members
Namespace: Evergine.Bullet
Assembly: Evergine.Bullet.dll
Syntax
public class BulletSliderJoint3D : BulletJoint3D<SliderConstraint, SliderJointDef3D>, ISliderJoint3D, IJoint3D
Constructors
BulletSliderJoint3D(BulletPhysicManager3D, SliderJointDef3D)
Initializes a new instance of the BulletSliderJoint3D class.
Declaration
public BulletSliderJoint3D(BulletPhysicManager3D simulation, SliderJointDef3D def)
Parameters
Type | Name | Description |
---|---|---|
BulletPhysicManager3D | simulation | The bullet simulation instance. |
SliderJointDef3D | def | The definition. |
Properties
AncorInA
Gets the ancor in A.
Declaration
public Vector3 AncorInA { get; }
Property Value
Type | Description |
---|---|
Vector3 |
AncorInB
Gets the ancor in B.
Declaration
public Vector3 AncorInB { get; }
Property Value
Type | Description |
---|---|
Vector3 |
AngularDepth
Gets the angular depth.
Declaration
public float AngularDepth { get; }
Property Value
Type | Description |
---|---|
float |
AngularPosition
Gets the angular position.
Declaration
public float AngularPosition { get; }
Property Value
Type | Description |
---|---|
float |
CalculatedTransformA
Gets the calculated transform in A.
Declaration
public Matrix4x4 CalculatedTransformA { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
CalculatedTransformB
Gets the calculated transform in B.
Declaration
public Matrix4x4 CalculatedTransformB { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
DampingDirAngular
Gets or sets the damping direction angular.
Declaration
public float DampingDirAngular { get; set; }
Property Value
Type | Description |
---|---|
float |
DampingDirLinear
Gets or sets the linear damping dir.
Declaration
public float DampingDirLinear { get; set; }
Property Value
Type | Description |
---|---|
float |
DampingLimAngular
Gets or sets the angular damping lim.
Declaration
public float DampingLimAngular { get; set; }
Property Value
Type | Description |
---|---|
float |
DampingLimLinear
Gets or sets the linear damping lim.
Declaration
public float DampingLimLinear { get; set; }
Property Value
Type | Description |
---|---|
float |
DampingOrthoAngular
Gets or sets the angular damping ortho.
Declaration
public float DampingOrthoAngular { get; set; }
Property Value
Type | Description |
---|---|
float |
DampingOrthoLinear
Gets or sets the linear damping ortho.
Declaration
public float DampingOrthoLinear { get; set; }
Property Value
Type | Description |
---|---|
float |
EnableAngularMotor
Gets or sets a value indicating whether the motor is enabled.
Declaration
public bool EnableAngularMotor { get; set; }
Property Value
Type | Description |
---|---|
bool |
EnableFrameOffset
Gets or sets a value indicating whether this joint use frame offsets.
Declaration
public bool EnableFrameOffset { get; set; }
Property Value
Type | Description |
---|---|
bool |
EnableLinearMotor
Gets or sets a value indicating whether the motor is enabled.
Declaration
public bool EnableLinearMotor { get; set; }
Property Value
Type | Description |
---|---|
bool |
FrameOffsetA
Gets the frame offset for body A.
Declaration
public Matrix4x4 FrameOffsetA { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
FrameOffsetB
Gets the frame offset for body B.
Declaration
public Matrix4x4 FrameOffsetB { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
LinearDepth
Gets the linear depth.
Declaration
public float LinearDepth { get; }
Property Value
Type | Description |
---|---|
float |
LinearPosition
Gets the linear position.
Declaration
public float LinearPosition { get; }
Property Value
Type | Description |
---|---|
float |
LowerAngularLimit
Gets or sets the Lower angular limit.
Declaration
public float LowerAngularLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
LowerLinearLimit
Gets or sets the Lower linear limit.
Declaration
public float LowerLinearLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
MaxAngularMotorForce
Gets or sets and sets maximum motor impulse.
Declaration
public float MaxAngularMotorForce { get; set; }
Property Value
Type | Description |
---|---|
float |
MaxLinearMotorForce
Gets or sets and sets maximum motor impulse.
Declaration
public float MaxLinearMotorForce { get; set; }
Property Value
Type | Description |
---|---|
float |
RestitutionDirAngular
Gets or sets the Restitution direction angular.
Declaration
public float RestitutionDirAngular { get; set; }
Property Value
Type | Description |
---|---|
float |
RestitutionDirLinear
Gets or sets the linear Restitution dir.
Declaration
public float RestitutionDirLinear { get; set; }
Property Value
Type | Description |
---|---|
float |
RestitutionLimAngular
Gets or sets the angular Restitution lim.
Declaration
public float RestitutionLimAngular { get; set; }
Property Value
Type | Description |
---|---|
float |
RestitutionLimLinear
Gets or sets the linear Restitution lim.
Declaration
public float RestitutionLimLinear { get; set; }
Property Value
Type | Description |
---|---|
float |
RestitutionOrthoAngular
Gets or sets the angular Restitution ortho.
Declaration
public float RestitutionOrthoAngular { get; set; }
Property Value
Type | Description |
---|---|
float |
RestitutionOrthoLinear
Gets or sets the linear Restitution ortho.
Declaration
public float RestitutionOrthoLinear { get; set; }
Property Value
Type | Description |
---|---|
float |
SoftnessDirAngular
Gets or sets the Softness direction angular.
Declaration
public float SoftnessDirAngular { get; set; }
Property Value
Type | Description |
---|---|
float |
SoftnessDirLinear
Gets or sets the linear Softness dir.
Declaration
public float SoftnessDirLinear { get; set; }
Property Value
Type | Description |
---|---|
float |
SoftnessLimAngular
Gets or sets the angular Softness lim.
Declaration
public float SoftnessLimAngular { get; set; }
Property Value
Type | Description |
---|---|
float |
SoftnessLimLinear
Gets or sets the linear Softness lim.
Declaration
public float SoftnessLimLinear { get; set; }
Property Value
Type | Description |
---|---|
float |
SoftnessOrthoAngular
Gets or sets the angular Softness ortho.
Declaration
public float SoftnessOrthoAngular { get; set; }
Property Value
Type | Description |
---|---|
float |
SoftnessOrthoLinear
Gets or sets the linear Softness ortho.
Declaration
public float SoftnessOrthoLinear { get; set; }
Property Value
Type | Description |
---|---|
float |
TargetAngularMotorVelocity
Gets or sets the max motor target velocity.
Declaration
public float TargetAngularMotorVelocity { get; set; }
Property Value
Type | Description |
---|---|
float |
TargetLinearMotorVelocity
Gets or sets the max motor target velocity.
Declaration
public float TargetLinearMotorVelocity { get; set; }
Property Value
Type | Description |
---|---|
float |
UpperAngularLimit
Gets or sets the Upper angular limit.
Declaration
public float UpperAngularLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
UpperLinearLimit
Gets or sets the Upper linear limit.
Declaration
public float UpperLinearLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
UseAngularLimit
Gets a value indicating whether Use angular limit.
Declaration
public bool UseAngularLimit { get; }
Property Value
Type | Description |
---|---|
bool |
UseLinearLimit
Gets a value indicating whether Use angular limit.
Declaration
public bool UseLinearLimit { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
CalculateTransforms(Matrix4x4, Matrix4x4)
Calculate the trasnform.
Declaration
public void CalculateTransforms(Matrix4x4 transA, Matrix4x4 transB)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | transA | Transform for A. |
Matrix4x4 | transB | Transform for B. |
CreateJoint()
Instantiate joint.
Declaration
protected override SliderConstraint CreateJoint()
Returns
Type | Description |
---|---|
SliderConstraint | The new joint. |
Overrides
SetFrames(Matrix4x4, Matrix4x4)
Set frames.
Declaration
public void SetFrames(Matrix4x4 frameA, Matrix4x4 frameB)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | frameA | The frame A. |
Matrix4x4 | frameB | The frame B. |