Class SpringJoint3D
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 SpringJoint3D : GenericAbstract6DofJoint3D<IGeneric6DofSpringJoint3D, Generic6DofSpringJointDef3D>, IDependencyObject
Constructors
SpringJoint3D()
Initializes a new instance of the SpringJoint3D class.
Declaration
public SpringJoint3D()
Properties
EquilibriumPointRotationX
Gets or sets the equilibrium point for rotation along the X axis.
Declaration
[RenderProperty(AttachToTag = 8, AttachToValue = true)]
public float EquilibriumPointRotationX { get; set; }
Property Value
Type | Description |
---|---|
float |
EquilibriumPointRotationY
Gets or sets the equilibrium point for rotation Y.
Declaration
[RenderProperty(AttachToTag = 9, AttachToValue = true)]
public float EquilibriumPointRotationY { get; set; }
Property Value
Type | Description |
---|---|
float |
EquilibriumPointRotationZ
Gets or sets the equilibrium point for the Z rotation.
Declaration
[RenderProperty(AttachToTag = 10, AttachToValue = true)]
public float EquilibriumPointRotationZ { get; set; }
Property Value
Type | Description |
---|---|
float |
EquilibriumPointTranslationX
Gets or sets the equilibrium point for translation along the X-axis.
Declaration
[RenderProperty(AttachToTag = 5, AttachToValue = true)]
public float EquilibriumPointTranslationX { get; set; }
Property Value
Type | Description |
---|---|
float |
EquilibriumPointTranslationY
Gets or sets the equilibrium point for translation along the Y-axis.
Declaration
[RenderProperty(AttachToTag = 6, AttachToValue = true)]
public float EquilibriumPointTranslationY { get; set; }
Property Value
Type | Description |
---|---|
float |
EquilibriumPointTranslationZ
Gets or sets the equilibrium point for translation along the Z-axis.
Declaration
[RenderProperty(AttachToTag = 7, AttachToValue = true)]
public float EquilibriumPointTranslationZ { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringDampingRotationX
Gets or sets the spring stiffness for rotation around the X axis.
Declaration
[RenderProperty(AttachToTag = 8, AttachToValue = true)]
public float SpringDampingRotationX { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringDampingRotationY
Gets or sets the spring stiffness for rotation around the Y axis.
Declaration
[RenderProperty(AttachToTag = 9, AttachToValue = true)]
public float SpringDampingRotationY { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringDampingRotationZ
Gets or sets the spring stiffness for rotation around the Z axis.
Declaration
[RenderProperty(AttachToTag = 10, AttachToValue = true)]
public float SpringDampingRotationZ { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringDampingTranslationX
Gets or sets the spring stiffness for translation along the X axis.
Declaration
[RenderProperty(AttachToTag = 5, AttachToValue = true)]
public float SpringDampingTranslationX { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringDampingTranslationY
Gets or sets the spring stiffness for translation Y.
Declaration
[RenderProperty(AttachToTag = 6, AttachToValue = true)]
public float SpringDampingTranslationY { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringDampingTranslationZ
Gets or sets the spring stiffness for translation along the Z-axis.
Declaration
[RenderProperty(AttachToTag = 7, AttachToValue = true)]
public float SpringDampingTranslationZ { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringStiffnessRotationX
Gets or sets the spring stiffness for rotation on the X axis.
Declaration
[RenderProperty(AttachToTag = 8, AttachToValue = true)]
public float SpringStiffnessRotationX { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringStiffnessRotationY
Gets or sets the spring stiffness for Y-axis rotation.
Declaration
[RenderProperty(AttachToTag = 9, AttachToValue = true)]
public float SpringStiffnessRotationY { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringStiffnessRotationZ
Gets or sets the spring stiffness for rotation around the Z-axis.
Declaration
[RenderProperty(AttachToTag = 10, AttachToValue = true)]
public float SpringStiffnessRotationZ { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringStiffnessTranslationX
Gets or sets the spring stiffness for translation along the X-axis.
Declaration
[RenderProperty(AttachToTag = 5, AttachToValue = true)]
public float SpringStiffnessTranslationX { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringStiffnessTranslationY
Gets or sets the spring stiffness for translation along the Y-axis.
Declaration
[RenderProperty(AttachToTag = 6, AttachToValue = true)]
public float SpringStiffnessTranslationY { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringStiffnessTranslationZ
Gets or sets the spring stiffness for translation in the Z-axis.
Declaration
[RenderProperty(AttachToTag = 7, AttachToValue = true)]
public float SpringStiffnessTranslationZ { get; set; }
Property Value
Type | Description |
---|---|
float |
UseSpringRotationX
Gets or sets a value indicating whether the rotational spring on the X-axis is enabled.
Declaration
[RenderProperty(Tag = 8)]
public bool UseSpringRotationX { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseSpringRotationY
Gets or sets a value indicating whether the spring for Rotation Y is enabled.
Declaration
[RenderProperty(Tag = 9)]
public bool UseSpringRotationY { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseSpringRotationZ
Gets or sets a value indicating whether the rotation Z spring is enabled.
Declaration
[RenderProperty(Tag = 10)]
public bool UseSpringRotationZ { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseSpringTranslationX
Gets or sets a value indicating whether the Translation X spring is enabled.
Declaration
[RenderProperty(Tag = 5)]
public bool UseSpringTranslationX { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseSpringTranslationY
Gets or sets a value indicating whether the Translation Y spring is enabled.
Declaration
[RenderProperty(Tag = 6)]
public bool UseSpringTranslationY { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseSpringTranslationZ
Gets or sets a value indicating whether the translation Z spring is enabled.
Declaration
[RenderProperty(Tag = 7)]
public bool UseSpringTranslationZ { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
FillJointDef(Generic6DofSpringJointDef3D)
Fills joint definition values.
Declaration
protected override bool FillJointDef(Generic6DofSpringJointDef3D jointDef)
Parameters
Type | Name | Description |
---|---|---|
Generic6DofSpringJointDef3D | jointDef | The generated joint values. |
Returns
Type | Description |
---|---|
bool | The result. |
Overrides
InitJoint()
Initializes the joint.
Declaration
protected override void InitJoint()