Search Results for

    Show / Hide Table of Contents

    Class SetCharacterDampingHelper

    Damp out cartwheeling and somersaulting above a certain threshold.

    Inheritance
    Object
    CustomHelper
    SetCharacterDampingHelper
    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 SetCharacterDampingHelper : CustomHelper

    Constructors

    | Improve this Doc View Source

    SetCharacterDampingHelper(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

    The Ped to send the SetCharacterDamping Message to.

    Remarks

    Damp out cartwheeling and somersaulting above a certain threshold.

    Properties

    | Improve this Doc View Source

    CartwheelDamp

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

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