Class SpringJoint3D
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 SpringJoint3D : GenericAbstract6DofJoint3D<IGeneric6DofSpringJoint3D, Generic6DofSpringJointDef3D>, IDependencyObject, IDisposable
Constructors
SpringJoint3D()
Initializes a new instance of the SpringJoint3D class.
Declaration
public SpringJoint3D()
Properties
EquilibriumPointRotationX
Gets or sets the equilibrium point for Rotation X.
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 Rotation Z.
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 X.
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 Y.
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 Z.
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 X.
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 Y.
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 Z.
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 X.
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 Z.
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 X.
Declaration
[RenderProperty(AttachToTag = 8, AttachToValue = true)]
public float SpringStiffnessRotationX { get; set; }
Property Value
Type | Description |
---|---|
float |
SpringStiffnessRotationY
Gets or sets the spring stiffness for Rotation Y.
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 Z.
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 X.
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 Y.
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 Z.
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 spring of Rotation X 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 of 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 spring of Rotation Z 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 spring of Translation X 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 spring of Translation Y 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 spring of Translation Z is enabled.
Declaration
[RenderProperty(Tag = 7)]
public bool UseSpringTranslationZ { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
FillJointDef(Generic6DofSpringJointDef3D)
Fill joint def 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()
Init joint.
Declaration
protected override void InitJoint()