Class: btRaycastVehicle
Ammo.btRaycastVehicle
Hierarchy
↳
btRaycastVehicle
Constructors
Methods
- updateAction
- applyEngineForce
- setSteeringValue
- getWheelTransformWS
- updateWheelTransform
- addWheel
- getNumWheels
- getRigidBody
- getWheelInfo
- setBrake
- setCoordinateSystem
- getCurrentSpeedKmHour
- getChassisWorldTransform
- rayCast
- updateVehicle
- resetSuspension
- getSteeringValue
- updateWheelTransformsWS
- setPitchControl
- updateSuspension
- updateFriction
- getRightAxis
- getUpAxis
- getForwardAxis
- getForwardVector
- getUserConstraintType
- setUserConstraintType
- setUserConstraintId
- getUserConstraintId
Constructors
constructor
• new btRaycastVehicle(tuning
, chassis
, raycaster
): btRaycastVehicle
Parameters
Name | Type |
---|---|
tuning | btVehicleTuning |
chassis | btRigidBody |
raycaster | btVehicleRaycaster |
Returns
Overrides
Defined in
Methods
updateAction
▸ updateAction(collisionWorld
, deltaTimeStep
): void
Parameters
Name | Type |
---|---|
collisionWorld | btCollisionWorld |
deltaTimeStep | number |
Returns
void
Inherited from
btActionInterface.updateAction
Defined in
applyEngineForce
▸ applyEngineForce(force
, wheel
): void
Parameters
Name | Type |
---|---|
force | number |
wheel | number |
Returns
void
Defined in
setSteeringValue
▸ setSteeringValue(steering
, wheel
): void
Parameters
Name | Type |
---|---|
steering | number |
wheel | number |
Returns
void
Defined in
getWheelTransformWS
▸ getWheelTransformWS(wheelIndex
): btTransform
Parameters
Name | Type |
---|---|
wheelIndex | number |
Returns
Defined in
updateWheelTransform
▸ updateWheelTransform(wheelIndex
, interpolatedTransform
): void
Parameters
Name | Type |
---|---|
wheelIndex | number |
interpolatedTransform | boolean |
Returns
void
Defined in
addWheel
▸ addWheel(connectionPointCS0
, wheelDirectionCS0
, wheelAxleCS
, suspensionRestLength
, wheelRadius
, tuning
, isFrontWheel
): btWheelInfo
Parameters
Name | Type |
---|---|
connectionPointCS0 | btVector3 |
wheelDirectionCS0 | btVector3 |
wheelAxleCS | btVector3 |
suspensionRestLength | number |
wheelRadius | number |
tuning | btVehicleTuning |
isFrontWheel | boolean |
Returns
Defined in
getNumWheels
▸ getNumWheels(): number
Returns
number
Defined in
getRigidBody
▸ getRigidBody(): btRigidBody
Returns
Defined in
getWheelInfo
▸ getWheelInfo(index
): btWheelInfo
Parameters
Name | Type |
---|---|
index | number |
Returns
Defined in
setBrake
▸ setBrake(brake
, wheelIndex
): void
Parameters
Name | Type |
---|---|
brake | number |
wheelIndex | number |
Returns
void
Defined in
setCoordinateSystem
▸ setCoordinateSystem(rightIndex
, upIndex
, forwardIndex
): void
Parameters
Name | Type |
---|---|
rightIndex | number |
upIndex | number |
forwardIndex | number |
Returns
void
Defined in
getCurrentSpeedKmHour
▸ getCurrentSpeedKmHour(): number
Returns
number
Defined in
getChassisWorldTransform
▸ getChassisWorldTransform(): btTransform
Returns
Defined in
rayCast
▸ rayCast(wheel
): number
Parameters
Name | Type |
---|---|
wheel | btWheelInfo |
Returns
number
Defined in
updateVehicle
▸ updateVehicle(step
): void
Parameters
Name | Type |
---|---|
step | number |
Returns
void
Defined in
resetSuspension
▸ resetSuspension(): void
Returns
void
Defined in
getSteeringValue
▸ getSteeringValue(wheel
): number
Parameters
Name | Type |
---|---|
wheel | number |
Returns
number
Defined in
updateWheelTransformsWS
▸ updateWheelTransformsWS(wheel
, interpolatedTransform?
): void
Parameters
Name | Type |
---|---|
wheel | btWheelInfo |
interpolatedTransform? | boolean |
Returns
void
Defined in
setPitchControl
▸ setPitchControl(pitch
): void
Parameters
Name | Type |
---|---|
pitch | number |
Returns
void
Defined in
updateSuspension
▸ updateSuspension(deltaTime
): void
Parameters
Name | Type |
---|---|
deltaTime | number |
Returns
void
Defined in
updateFriction
▸ updateFriction(timeStep
): void
Parameters
Name | Type |
---|---|
timeStep | number |
Returns
void
Defined in
getRightAxis
▸ getRightAxis(): number
Returns
number
Defined in
getUpAxis
▸ getUpAxis(): number
Returns
number
Defined in
getForwardAxis
▸ getForwardAxis(): number
Returns
number
Defined in
getForwardVector
▸ getForwardVector(): btVector3
Returns
Defined in
getUserConstraintType
▸ getUserConstraintType(): number
Returns
number
Defined in
setUserConstraintType
▸ setUserConstraintType(userConstraintType
): void
Parameters
Name | Type |
---|---|
userConstraintType | number |
Returns
void
Defined in
setUserConstraintId
▸ setUserConstraintId(uid
): void
Parameters
Name | Type |
---|---|
uid | number |
Returns
void
Defined in
getUserConstraintId
▸ getUserConstraintId(): number
Returns
number