Class SetCharacterDampingHelper
Damp out cartwheeling and somersaulting above a certain threshold.
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet2.dll
Syntax
public sealed class SetCharacterDampingHelper : CustomHelper
Constructors
Name | Description |
---|---|
SetCharacterDampingHelper(Ped) | Creates a new Instance of the SetCharacterDampingHelper for sending a SetCharacterDamping Message to a given Ped. |
Properties
Name | Description |
---|---|
CartwheelDamp | Amount to damp somersaulting by (spinning around front/back axis) - try 0.8. |
CartwheelThresh | Cartwheel AngularMomentum measure above which we start damping - try 27.0. |
SomersaultDamp | Amount to damp somersaulting by (spinning around left/right axis) - try 0.45. |
SomersaultThresh | Somersault AngularMomentum measure above which we start damping - try 34.0. Falling over straight backwards gives 54 on hitting ground. |
V2 | If true damping is proportional to Angular momentum squared. If false proportional to Angular momentum. |
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. |