Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HandlingData

Vehicle handling, which affects how vehicle responds and reacts to the inputs of a driver. This handling applies to all vehicle instances, as opposed to the Vehicle.handling.

remarks

Changes will be reflected on every vehicle using this particular handling, but might require vehicle recreating for changes to apply properly.

Hierarchy

  • HandlingData

Index

Constructors

Protected constructor

  • Returns HandlingData

Properties

acceleration

acceleration: number

antiRollBarBiasFront

antiRollBarBiasFront: number

antiRollBarBiasRear

antiRollBarBiasRear: number

antiRollBarForce

antiRollBarForce: number

brakeBiasFront

brakeBiasFront: number

brakeBiasRear

brakeBiasRear: number

brakeForce

brakeForce: number

camberStiffnesss

camberStiffnesss: number

centreOfMassOffset

centreOfMassOffset: Vector3

clutchChangeRateScaleDownShift

clutchChangeRateScaleDownShift: number

clutchChangeRateScaleUpShift

clutchChangeRateScaleUpShift: number

collisionDamageMult

collisionDamageMult: number

damageFlags

damageFlags: number

deformationDamageMult

deformationDamageMult: number

downforceModifier

downforceModifier: number

driveBiasFront

driveBiasFront: number

driveInertia

driveInertia: number

driveMaxFlatVel

driveMaxFlatVel: number

engineDamageMult

engineDamageMult: number

handBrakeForce

handBrakeForce: number

handlingFlags

handlingFlags: number

Readonly handlingNameHash

handlingNameHash: number

inertiaMultiplier

inertiaMultiplier: Vector3

initialDragCoeff

initialDragCoeff: number

initialDriveForce

initialDriveForce: number

initialDriveGears

initialDriveGears: number

initialDriveMaxFlatVel

initialDriveMaxFlatVel: number

lowSpeedTractionLossMult

lowSpeedTractionLossMult: number

mass

mass: number

modelFlags

modelFlags: number

monetaryValue

monetaryValue: number

oilVolume

oilVolume: number

percentSubmerged

percentSubmerged: number

percentSubmergedRatio

percentSubmergedRatio: number

petrolTankVolume

petrolTankVolume: number

rollCentreHeightFront

rollCentreHeightFront: number

rollCentreHeightRear

rollCentreHeightRear: number

seatOffsetDistX

seatOffsetDistX: number

seatOffsetDistY

seatOffsetDistY: number

seatOffsetDistZ

seatOffsetDistZ: number

steeringLock

steeringLock: number

steeringLockRatio

steeringLockRatio: number

suspensionBiasFront

suspensionBiasFront: number

suspensionBiasRear

suspensionBiasRear: number

suspensionCompDamp

suspensionCompDamp: number

suspensionForce

suspensionForce: number

suspensionLowerLimit

suspensionLowerLimit: number

suspensionRaise

suspensionRaise: number

suspensionReboundDamp

suspensionReboundDamp: number

suspensionUpperLimit

suspensionUpperLimit: number

tractionBiasFront

tractionBiasFront: number

tractionBiasRear

tractionBiasRear: number

tractionCurveLateral

tractionCurveLateral: number

tractionCurveLateralRatio

tractionCurveLateralRatio: number

tractionCurveMax

tractionCurveMax: number

tractionCurveMaxRatio

tractionCurveMaxRatio: number

tractionCurveMin

tractionCurveMin: number

tractionCurveMinRatio

tractionCurveMinRatio: number

tractionLossMult

tractionLossMult: number

tractionSpringDeltaMax

tractionSpringDeltaMax: number

tractionSpringDeltaMaxRatio

tractionSpringDeltaMaxRatio: number

unkFloat1

unkFloat1: number

unkFloat2

unkFloat2: number

unkFloat4

unkFloat4: number

unkFloat5

unkFloat5: number

weaponDamageMult

weaponDamageMult: number

Methods

Static getForHandlingName

  • Initializes a new instance of the HandlingData class that can modify handling properties for the specified handling name.

    remarks

    The handlingHash parameter is vehicle handling name hash, not a model hash. Can be retrieved from any vehicle instance: vehicle.handling.handlingNameHash {@link IVehicleHandling#handlingNameHash}

    Parameters

    • handlingHash: number

      hash of the vehicle handling name

    Returns HandlingData

Static reloadVehiclePhysics

  • reloadVehiclePhysics(modelHash: number): boolean
  • Parameters

    • modelHash: number

    Returns boolean