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 too 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
|
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 applied to the rope. 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
|
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
|