Skip to content

Class: btRaycastVehicle

Ammo.btRaycastVehicle

Hierarchy

Constructors

Methods

Constructors

constructor

new btRaycastVehicle(tuning, chassis, raycaster): btRaycastVehicle

Parameters

NameType
tuningbtVehicleTuning
chassisbtRigidBody
raycasterbtVehicleRaycaster

Returns

btRaycastVehicle

Overrides

btActionInterface.constructor

Defined in

packages/ammo/ammo.d.ts:843

Methods

updateAction

updateAction(collisionWorld, deltaTimeStep): void

Parameters

NameType
collisionWorldbtCollisionWorld
deltaTimeStepnumber

Returns

void

Inherited from

btActionInterface.updateAction

Defined in

packages/ammo/ammo.d.ts:818


applyEngineForce

applyEngineForce(force, wheel): void

Parameters

NameType
forcenumber
wheelnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:844


setSteeringValue

setSteeringValue(steering, wheel): void

Parameters

NameType
steeringnumber
wheelnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:845


getWheelTransformWS

getWheelTransformWS(wheelIndex): btTransform

Parameters

NameType
wheelIndexnumber

Returns

btTransform

Defined in

packages/ammo/ammo.d.ts:846


updateWheelTransform

updateWheelTransform(wheelIndex, interpolatedTransform): void

Parameters

NameType
wheelIndexnumber
interpolatedTransformboolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:847


addWheel

addWheel(connectionPointCS0, wheelDirectionCS0, wheelAxleCS, suspensionRestLength, wheelRadius, tuning, isFrontWheel): btWheelInfo

Parameters

NameType
connectionPointCS0btVector3
wheelDirectionCS0btVector3
wheelAxleCSbtVector3
suspensionRestLengthnumber
wheelRadiusnumber
tuningbtVehicleTuning
isFrontWheelboolean

Returns

btWheelInfo

Defined in

packages/ammo/ammo.d.ts:848


getNumWheels

getNumWheels(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:849


getRigidBody

getRigidBody(): btRigidBody

Returns

btRigidBody

Defined in

packages/ammo/ammo.d.ts:850


getWheelInfo

getWheelInfo(index): btWheelInfo

Parameters

NameType
indexnumber

Returns

btWheelInfo

Defined in

packages/ammo/ammo.d.ts:851


setBrake

setBrake(brake, wheelIndex): void

Parameters

NameType
brakenumber
wheelIndexnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:852


setCoordinateSystem

setCoordinateSystem(rightIndex, upIndex, forwardIndex): void

Parameters

NameType
rightIndexnumber
upIndexnumber
forwardIndexnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:853


getCurrentSpeedKmHour

getCurrentSpeedKmHour(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:854


getChassisWorldTransform

getChassisWorldTransform(): btTransform

Returns

btTransform

Defined in

packages/ammo/ammo.d.ts:855


rayCast

rayCast(wheel): number

Parameters

NameType
wheelbtWheelInfo

Returns

number

Defined in

packages/ammo/ammo.d.ts:856


updateVehicle

updateVehicle(step): void

Parameters

NameType
stepnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:857


resetSuspension

resetSuspension(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:858


getSteeringValue

getSteeringValue(wheel): number

Parameters

NameType
wheelnumber

Returns

number

Defined in

packages/ammo/ammo.d.ts:859


updateWheelTransformsWS

updateWheelTransformsWS(wheel, interpolatedTransform?): void

Parameters

NameType
wheelbtWheelInfo
interpolatedTransform?boolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:860


setPitchControl

setPitchControl(pitch): void

Parameters

NameType
pitchnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:861


updateSuspension

updateSuspension(deltaTime): void

Parameters

NameType
deltaTimenumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:862


updateFriction

updateFriction(timeStep): void

Parameters

NameType
timeStepnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:863


getRightAxis

getRightAxis(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:864


getUpAxis

getUpAxis(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:865


getForwardAxis

getForwardAxis(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:866


getForwardVector

getForwardVector(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:867


getUserConstraintType

getUserConstraintType(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:868


setUserConstraintType

setUserConstraintType(userConstraintType): void

Parameters

NameType
userConstraintTypenumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:869


setUserConstraintId

setUserConstraintId(uid): void

Parameters

NameType
uidnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:870


getUserConstraintId

getUserConstraintId(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:871

Released under the MIT License