Class SplineRopeBody
Physical simulation actor for ropes, chains and cables represented by a spline.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Physics/Actors/SplineRopeBody.h
Syntax
public class SplineRopeBody : public Actor
Fields
AdditionalForce
The additional, external force applied to rope (world-space). This can be eg. wind force.
Declaration
public Vector3 AdditionalForce = Vector3::Zero
Field Value
Vector3
|
AttachEnd
The target actor too attach the rope end to. If unset the rope end will run freely.
Declaration
public ScriptingObjectReference<Actor> AttachEnd
Field Value
ScriptingObjectReference<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
public bool EnableStiffness = false
Field Value
bool
|
GravityScale
The world gravity scale applied to the rope. Can be used to adjust gravity force or disable it.
Declaration
public float GravityScale = 1.0f
Field Value
float
|
SubstepTime
The rope simulation update substep (in seconds). Defines the frequency of physics update.
Declaration
public float SubstepTime = 0.02f
Field Value
float
|
Methods
OnDisable()
Called when actor gets removed from game systems. Occurs on EndPlay event or when actor gets inactivated in hierarchy. Use this event to unregister object from other game system (eg. audio).
Declaration
public virtual void OnDisable() override
Overrides
OnEnable()
Called when actor gets added to game systems. Occurs on BeginPlay event or when actor gets activated in hierarchy. Use this event to register object to other game system (eg. audio).
Declaration
public virtual void OnEnable() override
Overrides
OnParentChanged()
Called when actor parent gets changed.
Declaration
public virtual void OnParentChanged() override
Overrides
OnTransformChanged()
Called when actor transform gets changed.
Declaration
public virtual void OnTransformChanged() override