Class SliderJoint3D
This class represent a 3D physics joint and connects two entities together. All Joints restrict some degrees of freedom, seeking a specific configuration.
Inheritance
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class SliderJoint3D : Joint3D<ISliderJoint3D, SliderJointDef3D>, IDependencyObject, IDisposable
Constructors
SliderJoint3D()
Initializes a new instance of the SliderJoint3D class.
Declaration
public SliderJoint3D()
Properties
Anchor
Gets or sets the local anchor point relative to bodyA's origin.
Declaration
public Vector3 Anchor { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
AutoConfigureConnected
Gets or sets a value indicating whether.
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 bodyA'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 bodyA's origin.
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 Use angular limit.
Declaration
[RenderProperty(Tag = 3)]
public bool UseAngularLimit { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseAngularMotor
Gets or sets a value indicating whether Use angular motor.
Declaration
[RenderProperty(Tag = 5)]
public bool UseAngularMotor { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseLinearLimit
Gets or sets a value indicating whether Use angular limit.
Declaration
[RenderProperty(Tag = 2)]
public bool UseLinearLimit { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseLinearMotor
Gets or sets a value indicating whether Use linear motor.
Declaration
[RenderProperty(Tag = 4)]
public bool UseLinearMotor { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
BodyAChanged()
Body A is changed.
Declaration
protected override void BodyAChanged()
Overrides
BodyBChanged()
Body B is changed.
Declaration
protected override void BodyBChanged()
Overrides
FillJointDef(SliderJointDef3D)
Fill joint def 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()
Init joint.
Declaration
protected override void InitJoint()