public class btRaycastVehicle extends btActionInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
btRaycastVehicle.btVehicleTuning |
className| Constructor and Description |
|---|
btRaycastVehicle(btRaycastVehicle.btVehicleTuning tuning,
btRigidBody chassis,
btVehicleRaycaster raycaster) |
btRaycastVehicle(long cPtr,
boolean cMemoryOwn)
Construct a new btRaycastVehicle, normally you should not need this constructor it's intended for low-level usage.
|
debugDraw, getCPtr, updateActiondispose, equals, getCPointer, hashCode, hasOwnership, isDisposed, isObtained, obtain, release, releaseOwnership, takeOwnership, toStringpublic btRaycastVehicle(long cPtr,
boolean cMemoryOwn)
public btRaycastVehicle(btRaycastVehicle.btVehicleTuning tuning, btRigidBody chassis, btVehicleRaycaster raycaster)
public static long getCPtr(btRaycastVehicle obj)
public Matrix4 getChassisWorldTransform()
public float rayCast(btWheelInfo wheel)
public void updateVehicle(float step)
public void resetSuspension()
public float getSteeringValue(int wheel)
public void setSteeringValue(float steering,
int wheel)
public void applyEngineForce(float force,
int wheel)
public Matrix4 getWheelTransformWS(int wheelIndex)
public void updateWheelTransform(int wheelIndex,
boolean interpolatedTransform)
public void updateWheelTransform(int wheelIndex)
public btWheelInfo addWheel(Vector3 connectionPointCS0, Vector3 wheelDirectionCS0, Vector3 wheelAxleCS, float suspensionRestLength, float wheelRadius, btRaycastVehicle.btVehicleTuning tuning, boolean isFrontWheel)
public int getNumWheels()
public void setWheelInfo(SWIGTYPE_p_btAlignedObjectArrayT_btWheelInfo_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btWheelInfo_t getWheelInfo()
public btWheelInfo getWheelInfo(int index)
public btWheelInfo getWheelInfoConst(int index)
public void updateWheelTransformsWS(btWheelInfo wheel, boolean interpolatedTransform)
public void updateWheelTransformsWS(btWheelInfo wheel)
public void setBrake(float brake,
int wheelIndex)
public void setPitchControl(float pitch)
public void updateSuspension(float deltaTime)
public void updateFriction(float timeStep)
public btRigidBody getRigidBody()
public btRigidBody getRigidBodyConst()
public int getRightAxis()
public int getUpAxis()
public int getForwardAxis()
public Vector3 getForwardVector()
public float getCurrentSpeedKmHour()
public void setCoordinateSystem(int rightIndex,
int upIndex,
int forwardIndex)
public int getUserConstraintType()
public void setUserConstraintType(int userConstraintType)
public void setUserConstraintId(int uid)
public int getUserConstraintId()
Copyright © 2021. All rights reserved.