Skip to content

rapier-3d-raycast-vehicle.component overview


Table of contents


utils

Rapier3dRaycastVehicleComponent (class)

Signature

export declare class Rapier3dRaycastVehicleComponent {
  constructor(protected readonly world: Rapier3dWorldComponent, private chassisBody: Rapier3dRigidBodyComponent)
}

addToWorld (method)

Signature

addToWorld(
    world: Gg3dWorld<VisualTypeDocRepo3D, Rapier3dPhysicsTypeDocRepo, IVisualScene3dComponent, Rapier3dWorldComponent>,
  )

removeFromWorld (method)

Signature

removeFromWorld(
    world: Gg3dWorld<VisualTypeDocRepo3D, Rapier3dPhysicsTypeDocRepo, IVisualScene3dComponent, Rapier3dWorldComponent>,
  )

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

clone(): Rapier3dRaycastVehicleComponent

dispose (method)

Signature

dispose()

_nativeVehicle (property)

Signature

_nativeVehicle: any