Skip to content

ammo-raycast-vehicle.component overview


Table of contents


utils

AmmoRaycastVehicleComponent (class)

Signature

export declare class AmmoRaycastVehicleComponent {
  constructor(protected readonly world: AmmoWorldComponent, public chassisBody: AmmoRigidBodyComponent)
}

refreshCG (method)

Signature

refreshCG()

addToWorld (method)

Signature

addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>)

removeFromWorld (method)

Signature

removeFromWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>)

addWheel (method)

Signature

addWheel(options: WheelOptions, suspensionOptions: SuspensionOptions): void

setSteering (method)

Signature

setSteering(wheelIndex: number, steering: number): void

applyEngineForce (method)

Signature

applyEngineForce(wheelIndex: number, force: number): void

applyBrake (method)

Signature

applyBrake(wheelIndex: number, force: number): void

isWheelTouchesGround (method)

Signature

isWheelTouchesGround(wheelIndex: number): boolean

getWheelTransform (method)

Signature

getWheelTransform(wheelIndex: number): { position: Point3; rotation: Point4 }

resetSuspension (method)

Signature

resetSuspension(): void

clone (method)

Signature

public clone(): AmmoRaycastVehicleComponent

resetMotion (method)

Signature

resetMotion()

nativeVehicle (property)

Signature

readonly nativeVehicle: Ammo.btRaycastVehicle

vehicleTuning (property)

Signature

readonly vehicleTuning: Ammo.btVehicleTuning

wheelDirectionCS0 (property)

Signature

readonly wheelDirectionCS0: Ammo.btVector3

wheelAxleCS (property)

Signature

readonly wheelAxleCS: Ammo.btVector3

entity (property)

Signature

entity: any

raycaster (property)

Signature

readonly raycaster: Ammo.btDefaultVehicleRaycaster