Search Results for

    Show / Hide Table of Contents

    Class ApplyImpulseHelper

    Inheritance
    Object
    CustomHelper
    ApplyImpulseHelper
    Inherited Members
    CustomHelper.Start()
    CustomHelper.Start(Int32)
    CustomHelper.Stop()
    CustomHelper.SetArgument(String, Boolean)
    CustomHelper.SetArgument(String, Int32)
    CustomHelper.SetArgument(String, Single)
    CustomHelper.SetArgument(String, String)
    CustomHelper.SetArgument(String, Vector3)
    CustomHelper.ResetArguments()
    CustomHelper.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: GTA.NaturalMotion
    Assembly: ScriptHookVDotNet3.dll
    Syntax
    public sealed class ApplyImpulseHelper : CustomHelper

    Constructors

    | Improve this Doc View Source

    ApplyImpulseHelper(Ped)

    Creates a new Instance of the ApplyImpulseHelper for sending a ApplyImpulse Message to a given Ped.

    Declaration
    public ApplyImpulseHelper(Ped ped)
    Parameters
    Type Name Description
    Ped ped

    The Ped to send the ApplyImpulse Message to.

    Properties

    | Improve this Doc View Source

    AngularImpulse

    Impulse should be considered an angular impulse.

    Declaration
    public bool AngularImpulse { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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).

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    LocalHitPointInfo

    Hit point in local coordinates of body part.

    Declaration
    public bool LocalHitPointInfo { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    LocalImpulseInfo

    Impulse in local coordinates of body part.

    Declaration
    public bool LocalImpulseInfo { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX