Class SliderJoint3D
This class represents a 3D physics joint and connects two entities together. All joints restrict some degrees of freedom, seeking a specific configuration.
Inheritance
Implements
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class SliderJoint3D : Joint3D<ISliderJoint3D, SliderJointDef3D>, IDependencyObject
Constructors
SliderJoint3D()
Initializes a new instance of the SliderJoint3D class.
Declaration
public SliderJoint3D()
Properties
Anchor
Gets or sets the local anchor point relative to the origin of bodyA.
Declaration
public Vector3 Anchor { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
AutoConfigureConnected
Gets or sets a value indicating whether the condition is met.
Declaration
[RenderProperty(Tag = 1)]
public bool AutoConfigureConnected { get; set; }
Property Value
Type | Description |
---|---|
bool |
Axis
Gets or sets the hinge axis.
Declaration
public Vector3 Axis { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
ConnectedAnchor
Gets or sets the local anchor point relative to body A's origin.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = false)]
public Vector3 ConnectedAnchor { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
ConnectedAxis
Gets or sets the local anchor point relative to the origin of bodyA.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = false)]
public Vector3 ConnectedAxis { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
LowerAngularLimit
Gets or sets the lower linear limit.
Declaration
[RenderProperty(AttachToTag = 3, AttachToValue = true, ConverterType = typeof(FloatRadianToDegreeConverter))]
public float LowerAngularLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
LowerLinearLimit
Gets or sets the lower linear limit.
Declaration
[RenderProperty(AttachToTag = 2, AttachToValue = true)]
public float LowerLinearLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
MaxAngularMotorForce
Gets or sets the lower angular limit.
Declaration
[RenderProperty(AttachToTag = 5, AttachToValue = true)]
public float MaxAngularMotorForce { get; set; }
Property Value
Type | Description |
---|---|
float |
MaxLinearMotorForce
Gets or sets the lower linear limit.
Declaration
[RenderProperty(AttachToTag = 4, AttachToValue = true)]
public float MaxLinearMotorForce { get; set; }
Property Value
Type | Description |
---|---|
float |
TargetAngularMotorVelocity
Gets or sets the upper angular limit.
Declaration
[RenderProperty(AttachToTag = 5, AttachToValue = true)]
public float TargetAngularMotorVelocity { get; set; }
Property Value
Type | Description |
---|---|
float |
TargetLinearMotorVelocity
Gets or sets the upper linear limit.
Declaration
[RenderProperty(AttachToTag = 4, AttachToValue = true)]
public float TargetLinearMotorVelocity { get; set; }
Property Value
Type | Description |
---|---|
float |
UpperAngularLimit
Gets or sets the upper linear limit.
Declaration
[RenderProperty(AttachToTag = 3, AttachToValue = true, ConverterType = typeof(FloatRadianToDegreeConverter))]
public float UpperAngularLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
UpperLinearLimit
Gets or sets the upper linear limit.
Declaration
[RenderProperty(AttachToTag = 2, AttachToValue = true)]
public float UpperLinearLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
UseAngularLimit
Gets or sets a value indicating whether to use the angular limit.
Declaration
[RenderProperty(Tag = 3)]
public bool UseAngularLimit { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseAngularMotor
Gets or sets a value indicating whether to use the angular motor.
Declaration
[RenderProperty(Tag = 5)]
public bool UseAngularMotor { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseLinearLimit
Gets or sets a value indicating whether to use the angular limit.
Declaration
[RenderProperty(Tag = 2)]
public bool UseLinearLimit { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseLinearMotor
Gets or sets a value indicating whether to use the linear motor.
Declaration
[RenderProperty(Tag = 4)]
public bool UseLinearMotor { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
BodyAChanged()
Body A has been changed.
Declaration
protected override void BodyAChanged()
Overrides
BodyBChanged()
Body B has been changed.
Declaration
protected override void BodyBChanged()
Overrides
FillJointDef(SliderJointDef3D)
Fills joint definition values.
Declaration
protected override bool FillJointDef(SliderJointDef3D jointDef)
Parameters
Type | Name | Description |
---|---|---|
SliderJointDef3D | jointDef | The generated joint values. |
Returns
Type | Description |
---|---|
bool | The result. |
Overrides
InitJoint()
Initializes the joint.
Declaration
protected override void InitJoint()