Class ApplyImpulseHelper
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class ApplyImpulseHelper : CustomHelper
Constructors
| Improve this Doc View SourceApplyImpulseHelper(Ped)
Declaration
public ApplyImpulseHelper(Ped ped)
Parameters
Type | Name | Description |
---|---|---|
Ped | ped |
Properties
| Improve this Doc View SourceAngularImpulse
Impulse should be considered an angular impulse.
Declaration
public bool AngularImpulse { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = False.
EqualizeAmount
0 means straight impulse, 1 means multiply by the mass (change in velocity).
Declaration
public float EqualizeAmount { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.
HitPoint
Optional point on part where hit. If not supplied then the impulse is applied at the part center.
Declaration
public Vector3 HitPoint { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f).
Impulse
Impulse vector (impulse is change in momentum).
Declaration
public Vector3 Impulse { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = -4500.0f. Max value = 4500.0f.
LocalHitPointInfo
Hit point in local coordinates of body part.
Declaration
public bool LocalHitPointInfo { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = False.
LocalImpulseInfo
Impulse in local coordinates of body part.
Declaration
public bool LocalImpulseInfo { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = False.
PartIndex
Index of part being hit. -1 apply impulse to COM.
Declaration
public int PartIndex { set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Default value = 0. Min value = -1. Max value = 28.