Class BodyRelaxHelper
Set the amount of relaxation across the whole body; Used to collapse the character into a rag-doll-like state.
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class BodyRelaxHelper : CustomHelper
Constructors
| Improve this Doc View SourceBodyRelaxHelper(Ped)
Declaration
public BodyRelaxHelper(Ped ped)
Parameters
Type | Name | Description |
---|---|---|
Ped | ped |
Remarks
Set the amount of relaxation across the whole body; Used to collapse the character into a rag-doll-like state.
Properties
| Improve this Doc View SourceDamping
Declaration
public float Damping { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 1.0f. Min value = 0.0f. Max value = 2.0f.
DisableJointDriving
Sets the drive state to free - this reduces drifting on the ground.
Declaration
public bool DisableJointDriving { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = False.
HoldPose
Automatically hold the current pose as the character relaxes - can be used to avoid relaxing into a t-pose.
Declaration
public bool HoldPose { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = False.
Mask
Two character body-masking value, bitwise joint mask or bitwise logic string of two character body-masking value (see Active Pose notes for possible values).
Declaration
public string Mask { set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Default value = "fb.
Relaxation
How relaxed the body becomes, in percentage relaxed. 100 being totally rag-dolled, 0 being very stiff and rigid.
Declaration
public float Relaxation { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 50.0f. Min value = 0.0f. Max value = 100.0f.