Class SplineRopeBody
Physical simulation actor for ropes, chains and cables represented by a spline.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public class SplineRopeBody : Actor, ISerializable
Constructors
SplineRopeBody()
Properties
AdditionalForce
The additional, external force applied to rope (world-space). This can be eg. wind force.
Declaration
[EditorOrder(20)]
[EditorDisplay("Rope", null)]
[Unmanaged]
public Vector3 AdditionalForce { get; set; }
Property Value
|
Vector3
|
AttachEnd
The target actor to attach the rope end to. If unset the rope end will run freely.
Declaration
[EditorOrder(0)]
[EditorDisplay("Rope", null)]
[Unmanaged]
public Actor AttachEnd { get; set; }
Property Value
|
Actor
|
Drag
The scale of velocity applied to rope. The greater the value, the more suppressed the movement. Lower values increase movement freedom.
Declaration
[EditorOrder(15)]
[EditorDisplay("Rope", null)]
[Limit(0F, 0.99F, 0.001F)]
[Unmanaged]
public float Drag { get; set; }
Property Value
|
System.Single
|
EnableStiffness
If checked, the physics solver will use stiffness constraint for rope. It will be less likely to bend over and will preserve more it's shape.
Declaration
[EditorOrder(30)]
[EditorDisplay("Rope", null)]
[Unmanaged]
public bool EnableStiffness { get; set; }
Property Value
|
System.Boolean
|
GravityScale
The world gravity scale. Can be used to adjust gravity force or disable it.
Declaration
[EditorOrder(10)]
[EditorDisplay("Rope", null)]
[Unmanaged]
public float GravityScale { get; set; }
Property Value
|
System.Single
|
StretchLimit
The maximum bones stretch scale. The value of 0 means no stretch, 1 - can stretch up to double length.
Declaration
[EditorOrder(19)]
[EditorDisplay("Rope", null)]
[Limit(0F, 3.40282347E+38F, 1F)]
[Unmanaged]
public float StretchLimit { get; set; }
Property Value
|
System.Single
|
SubstepTime
The rope simulation update substep (in seconds). Defines the frequency of physics update.
Declaration
[EditorOrder(40)]
[Limit(0F, 0.1F, 0.0001F)]
[EditorDisplay("Rope", null)]
[Unmanaged]
public float SubstepTime { get; set; }
Property Value
|
System.Single
|