Class SpringParameters
Controls spring parameters for a physics joint limits. If a limit is soft (body bounces back due to restitution when the limit is reached) the spring will pull the body back towards the limit using the specified parameters.
Inheritance
System.Object
SpringParameters
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class SpringParameters : ValueType
Constructors
SpringParameters(Single, Single)
Constructs a spring.
Declaration
public SpringParameters(float stiffness, float damping)
Parameters
System.Single
stiffness
Spring strength. Force proportional to the position error. |
System.Single
damping
Damping strength. Force proportional to the velocity error. |
Fields
Damping
Damping strength. Force proportional to the velocity error.
Declaration
public float Damping
Field Value
System.Single
|
Stiffness
The spring strength. Force proportional to the position error.
Declaration
public float Stiffness
Field Value
System.Single
|
Properties
Default
The default SpringParameters.
Declaration
public static SpringParameters Default { get; }
Property Value
SpringParameters
|