@NoOffset @Properties(inherit=BulletDynamics.class) public class btRaycastVehicle extends btActionInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
btRaycastVehicle.btVehicleTuning |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btRaycastVehicle(btRaycastVehicle.btVehicleTuning tuning,
btRigidBody chassis,
btVehicleRaycaster raycaster) |
btRaycastVehicle(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
btWheelInfo |
addWheel(btVector3 connectionPointCS0,
btVector3 wheelDirectionCS0,
btVector3 wheelAxleCS,
double suspensionRestLength,
double wheelRadius,
btRaycastVehicle.btVehicleTuning tuning,
boolean isFrontWheel) |
void |
applyEngineForce(double force,
int wheel) |
void |
debugDraw(btIDebugDraw debugDrawer)
btActionInterface interface
|
btTransform |
getChassisWorldTransform() |
double |
getCurrentSpeedKmHour()
Velocity of vehicle (positive if velocity vector has same direction as foward vector)
|
int |
getForwardAxis() |
btVector3 |
getForwardVector()
Worldspace forward vector
|
int |
getNumWheels() |
int |
getRightAxis() |
btRigidBody |
getRigidBody() |
double |
getSteeringValue(int wheel) |
int |
getUpAxis() |
int |
getUserConstraintId() |
int |
getUserConstraintType()
backwards compatibility
|
btWheelInfo |
getWheelInfo(int index) |
btTransform |
getWheelTransformWS(int wheelIndex) |
btWheelInfoArray |
m_wheelInfo() |
btRaycastVehicle |
m_wheelInfo(btWheelInfoArray setter) |
double |
rayCast(btWheelInfo wheel) |
void |
resetSuspension() |
void |
setBrake(double brake,
int wheelIndex) |
void |
setCoordinateSystem(int rightIndex,
int upIndex,
int forwardIndex) |
void |
setPitchControl(double pitch) |
void |
setSteeringValue(double steering,
int wheel) |
void |
setUserConstraintId(int uid) |
void |
setUserConstraintType(int userConstraintType) |
void |
updateAction(btCollisionWorld collisionWorld,
double step)
btActionInterface interface
|
void |
updateFriction(double timeStep) |
void |
updateSuspension(double deltaTime) |
void |
updateVehicle(double step) |
void |
updateWheelTransform(int wheelIndex) |
void |
updateWheelTransform(int wheelIndex,
boolean interpolatedTransform) |
void |
updateWheelTransformsWS(btWheelInfo wheel) |
void |
updateWheelTransformsWS(btWheelInfo wheel,
boolean interpolatedTransform) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic btRaycastVehicle(Pointer p)
Pointer(Pointer).public btRaycastVehicle(@Const @ByRef btRaycastVehicle.btVehicleTuning tuning, btRigidBody chassis, btVehicleRaycaster raycaster)
public void updateAction(btCollisionWorld collisionWorld, @Cast(value="btScalar") double step)
updateAction in class btActionInterfacepublic void debugDraw(btIDebugDraw debugDrawer)
debugDraw in class btActionInterface@Const @ByRef public btTransform getChassisWorldTransform()
@Cast(value="btScalar") public double rayCast(@ByRef btWheelInfo wheel)
public void resetSuspension()
@Const @ByRef public btTransform getWheelTransformWS(int wheelIndex)
public void updateWheelTransform(int wheelIndex,
@Cast(value="bool")
boolean interpolatedTransform)
public void updateWheelTransform(int wheelIndex)
@ByRef public btWheelInfo addWheel(@Const @ByRef btVector3 connectionPointCS0, @Const @ByRef btVector3 wheelDirectionCS0, @Const @ByRef btVector3 wheelAxleCS, @Cast(value="btScalar") double suspensionRestLength, @Cast(value="btScalar") double wheelRadius, @Const @ByRef btRaycastVehicle.btVehicleTuning tuning, @Cast(value="bool") boolean isFrontWheel)
public int getNumWheels()
@ByRef public btWheelInfoArray m_wheelInfo()
public btRaycastVehicle m_wheelInfo(btWheelInfoArray setter)
@ByRef public btWheelInfo getWheelInfo(int index)
public void updateWheelTransformsWS(@ByRef btWheelInfo wheel, @Cast(value="bool") boolean interpolatedTransform)
public void updateWheelTransformsWS(@ByRef btWheelInfo wheel)
public btRigidBody getRigidBody()
public int getRightAxis()
public int getUpAxis()
public int getForwardAxis()
@Cast(value="btScalar") public double 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 © 2024. All rights reserved.