Class DynamicRayCastVehicleController
Hierarchy
- DynamicRayCastVehicleController
Properties
Private
_chassis
_chassis: any
Private
bodies
bodies: any
Private
colliders
colliders: any
Private
queries
queries: any
Private
raw
raw: any
Accessors
indexForwardAxis
- get indexForwardAxis(): number
-
Returns number
indexUpAxis
- get indexUpAxis(): number
-
Returns number
- set indexUpAxis(axis: number): void
-
Returns void
setIndexForwardAxis
- set setIndexForwardAxis(axis: number): void
-
Returns void
Methods
addWheel
- addWheel(chassisConnectionCs: Vector, directionCs: Vector, axleCs: Vector, suspensionRestLength: number, radius: number): void
-
Parameters
-
chassisConnectionCs: Vector
-
directionCs: Vector
-
-
suspensionRestLength: number
-
radius: number
Returns void
chassis
- chassis(): RigidBody
-
currentVehicleSpeed
- currentVehicleSpeed(): number
-
Returns number
free
- free(): void
Internal
Returns void
numWheels
- numWheels(): number
-
Returns number
setWheelAxleCs
- setWheelAxleCs(i: number, value: Vector): void
-
Returns void
setWheelBrake
- setWheelBrake(i: number, value: number): void
-
Returns void
setWheelChassisConnectionPointCs
- setWheelChassisConnectionPointCs(i: number, value: Vector): void
-
Returns void
setWheelDirectionCs
- setWheelDirectionCs(i: number, value: Vector): void
-
Returns void
setWheelEngineForce
- setWheelEngineForce(i: number, value: number): void
-
Returns void
setWheelFrictionSlip
- setWheelFrictionSlip(i: number, value: number): void
-
Returns void
setWheelMaxSuspensionForce
- setWheelMaxSuspensionForce(i: number, value: number): void
-
Returns void
setWheelMaxSuspensionTravel
- setWheelMaxSuspensionTravel(i: number, value: number): void
-
Returns void
setWheelRadius
- setWheelRadius(i: number, value: number): void
-
Returns void
setWheelSideFrictionStiffness
- setWheelSideFrictionStiffness(i: number, value: number): void
-
Returns void
setWheelSteering
- setWheelSteering(i: number, value: number): void
-
Returns void
setWheelSuspensionCompression
- setWheelSuspensionCompression(i: number, value: number): void
-
Returns void
setWheelSuspensionRelaxation
- setWheelSuspensionRelaxation(i: number, value: number): void
-
Returns void
setWheelSuspensionRestLength
- setWheelSuspensionRestLength(i: number, value: number): void
-
Returns void
setWheelSuspensionStiffness
- setWheelSuspensionStiffness(i: number, value: number): void
-
Returns void
updateVehicle
- updateVehicle(dt: number, filterFlags?: QueryFilterFlags, filterGroups?: number, filterPredicate?: ((collider: Collider) => boolean)): void
-
Parameters
-
dt: number
-
-
Optional
filterGroups: number
-
Optional
filterPredicate: ((collider: Collider) => boolean)
-
- (collider: Collider): boolean
-
Returns boolean
Returns void
wheelAxleCs
- wheelAxleCs(i: number): Vector
-
wheelBrake
- wheelBrake(i: number): number
-
Returns number
wheelChassisConnectionPointCs
- wheelChassisConnectionPointCs(i: number): Vector
-
wheelContactNormal
- wheelContactNormal(i: number): Vector
-
wheelContactPoint
- wheelContactPoint(i: number): Vector
-
wheelDirectionCs
- wheelDirectionCs(i: number): Vector
-
wheelEngineForce
- wheelEngineForce(i: number): number
-
Returns number
wheelForwardImpulse
- wheelForwardImpulse(i: number): number
-
Returns number
wheelFrictionSlip
- wheelFrictionSlip(i: number): number
-
Returns number
wheelGroundObject
- wheelGroundObject(i: number): Collider
-
wheelHardPoint
- wheelHardPoint(i: number): Vector
-
wheelIsInContact
- wheelIsInContact(i: number): boolean
-
Returns boolean
wheelMaxSuspensionForce
- wheelMaxSuspensionForce(i: number): number
-
Returns number
wheelMaxSuspensionTravel
- wheelMaxSuspensionTravel(i: number): number
-
Returns number
wheelRadius
- wheelRadius(i: number): number
-
Returns number
wheelRotation
- wheelRotation(i: number): number
-
Returns number
wheelSideFrictionStiffness
- wheelSideFrictionStiffness(i: number): number
-
Returns number
wheelSideImpulse
- wheelSideImpulse(i: number): number
-
Returns number
wheelSteering
- wheelSteering(i: number): number
-
Returns number
wheelSuspensionCompression
- wheelSuspensionCompression(i: number): number
-
Returns number
wheelSuspensionForce
- wheelSuspensionForce(i: number): number
-
Returns number
wheelSuspensionLength
- wheelSuspensionLength(i: number): number
-
Returns number
wheelSuspensionRelaxation
- wheelSuspensionRelaxation(i: number): number
-
Returns number
wheelSuspensionRestLength
- wheelSuspensionRestLength(i: number): number
-
Returns number
wheelSuspensionStiffness
- wheelSuspensionStiffness(i: number): number
-
Returns number
A character controller to simulate vehicles using ray-casting for the wheels.