Generic6DoFSpringConstraint Class
Namespace: Stride.PhysicsAssembly: Stride.Physics.dll
Derived from Generic6DoFSpringConstraint:
public class Generic6DoFSpringConstraint : Generic6DoFConstraint, IDisposable, IRelative
Name | Description | |
---|---|---|
Methods | ||
EnableSpring(Int32, Boolean) | Enables the spring. |
|
SetDamping(Int32, Single) | Sets the damping. |
|
SetEquilibriumPoint(Int32, Single) | Sets the equilibrium point. |
|
SetStiffness(Int32, Single) | Sets the stiffness. |
Methods
EnableSpring(Int32, Boolean)
Enables the spring.
public void EnableSpring(int index, bool onOff)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
System.Boolean | onOff | if set to |
SetDamping(Int32, Single)
Sets the damping.
public void SetDamping(int index, float damping)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
System.Single | damping | The damping. |
SetEquilibriumPoint(Int32, Single)
Sets the equilibrium point.
public void SetEquilibriumPoint(int index, float val)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
System.Single | val | The value. |
SetStiffness(Int32, Single)
Sets the stiffness.
public void SetStiffness(int index, float stiffness)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
System.Single | stiffness | The stiffness. |