Class HingeJoint3D
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 HingeJoint3D : Joint3D<IHingeJoint3D, HingeJointDef3D>, IDependencyObject
Constructors
HingeJoint3D()
Initializes a new instance of the HingeJoint3D class.
Declaration
public HingeJoint3D()
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.
Declaration
[RenderProperty(Tag = 1)]
public bool AutoConfigureConnected { get; set; }
Property Value
Type | Description |
---|---|
bool |
Axis
Gets or sets the hinge's axis.
Declaration
public Vector3 Axis { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
ConnectedAnchor
Gets or sets the local anchor point relative to the origin of bodyA.
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 |
LimitBiasFactor
Gets or sets the strength with which the constraint resists zeroth order.
Declaration
public float LimitBiasFactor { get; set; }
Property Value
Type | Description |
---|---|
float |
LimitRelaxationFactor
Gets or sets the limit relaxation factor. The lower the value, the less the constraint will resist velocities that violate the angular limits.
Declaration
public float LimitRelaxationFactor { get; set; }
Property Value
Type | Description |
---|---|
float |
LimitSoftness
Gets or sets the percentage of limits where movement is unrestricted.
Declaration
public float LimitSoftness { get; set; }
Property Value
Type | Description |
---|---|
float |
LowerAngularLimit
Gets or sets the lower limit.
Declaration
[RenderProperty(AttachToValue = true, AttachToTag = 2, ConverterType = typeof(FloatRadianToDegreeConverter))]
public float LowerAngularLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
MotorTargetImpulse
Gets or sets the lower limit.
Declaration
[RenderProperty(AttachToValue = true, AttachToTag = 3)]
public float MotorTargetImpulse { get; set; }
Property Value
Type | Description |
---|---|
float |
MotorTargetVelocity
Gets or sets the motor's target velocity.
Declaration
[RenderProperty(AttachToValue = true, AttachToTag = 3)]
public float MotorTargetVelocity { get; set; }
Property Value
Type | Description |
---|---|
float |
UpperAngularLimit
Gets or sets the lower limit.
Declaration
[RenderProperty(AttachToValue = true, AttachToTag = 2, ConverterType = typeof(FloatRadianToDegreeConverter))]
public float UpperAngularLimit { get; set; }
Property Value
Type | Description |
---|---|
float |
UseAngularLimit
Gets or sets a value indicating whether the condition is met.
Declaration
[RenderProperty(Tag = 2)]
public bool UseAngularLimit { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseMotor
Gets or sets a value indicating whether the joint has the motor enabled.
Declaration
[RenderProperty(Tag = 3)]
public bool UseMotor { 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(HingeJointDef3D)
Fills joint definition values.
Declaration
protected override bool FillJointDef(HingeJointDef3D jointDef)
Parameters
Type | Name | Description |
---|---|---|
HingeJointDef3D | jointDef | The generated joint values. |
Returns
Type | Description |
---|---|
bool | The result. |
Overrides
InitJoint()
Initializes the joint.
Declaration
protected override void InitJoint()