Class SetCharacterDampingHelper
Damp out cartwheeling and somersaulting above a certain threshold.
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class SetCharacterDampingHelper : CustomHelper
Constructors
| Improve this Doc View SourceSetCharacterDampingHelper(Ped)
Creates a new Instance of the SetCharacterDampingHelper for sending a SetCharacterDamping Message to a given Ped.
Declaration
public SetCharacterDampingHelper(Ped ped)
Parameters
Type | Name | Description |
---|---|---|
Ped | ped |
Remarks
Damp out cartwheeling and somersaulting above a certain threshold.
Properties
| Improve this Doc View SourceCartwheelDamp
Amount to damp somersaulting by (spinning around front/back axis) - try 0.8.
Declaration
public float CartwheelDamp { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 0.0f. Min value = 0.0f. Max value = 2.0f.
CartwheelThresh
Cartwheel AngularMomentum measure above which we start damping - try 27.0.
Declaration
public float CartwheelThresh { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 27.0f. Min value = 0.0f. Max value = 200.0f.
SomersaultDamp
Amount to damp somersaulting by (spinning around left/right axis) - try 0.45.
Declaration
public float SomersaultDamp { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 0.0f. Min value = 0.0f. Max value = 2.0f.
SomersaultThresh
Somersault AngularMomentum measure above which we start damping - try 34.0. Falling over straight backwards gives 54 on hitting ground.
Declaration
public float SomersaultThresh { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 34.0f. Min value = 0.0f. Max value = 200.0f.
V2
If true damping is proportional to Angular momentum squared. If false proportional to Angular momentum.
Declaration
public bool V2 { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = False.
VehicleCollisionTime
Time after impact with a vehicle to apply characterDamping. -ve values mean always apply whether collided with vehicle or not. =0.0 never apply. =timestep apply for only that frame. A typical roll from being hit by a car lasts about 4secs.
Declaration
public float VehicleCollisionTime { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 0.0f. Min value = -1.0f. Max value = 1000.0f.