APIdia Launch Partner
Top Inners Fields Constructors Methods
com.badlogic.gdx.physics.bullet.dynamics

public Class btRaycastVehicle

extends btActionInterface
Class Inheritance
Imports
com.badlogic.gdx.physics.bullet.BulletBase, com.badlogic.gdx.physics.bullet.linearmath.*, com.badlogic.gdx.physics.bullet.collision.*, com.badlogic.gdx.math.Vector3, .Matrix4

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
protected
btRaycastVehicle(final String className, long cPtr, boolean cMemoryOwn)

public
btRaycastVehicle(long cPtr, boolean cMemoryOwn)

Construct a new btRaycastVehicle, normally you should not need this constructor it's intended for low-level usage.

public

Method Summary

Modifier and TypeMethod and Description
public btWheelInfo
addWheel(Vector3 connectionPointCS0, Vector3 wheelDirectionCS0, Vector3 wheelAxleCS, float suspensionRestLength, float wheelRadius, btRaycastVehicle.btVehicleTuning tuning, boolean isFrontWheel)

public void
applyEngineForce(float force, int wheel)

protected synchronized void
delete()

Overrides com.badlogic.gdx.physics.bullet.dynamics.btActionInterface.delete.

Deletes the bullet object this class encapsulates.

protected void
finalize()

Overrides com.badlogic.gdx.physics.bullet.dynamics.btActionInterface.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

public Matrix4
public static long
public float
public int
public Vector3
public int
public int
public btRigidBody
public btRigidBody
public float
getSteeringValue(int wheel)

public int
public int
public int
public SWIGTYPE_p_btAlignedObjectArrayT_btWheelInfo_t
public btWheelInfo
getWheelInfo(int index)

public btWheelInfo
getWheelInfoConst(int index)

public Matrix4
getWheelTransformWS(int wheelIndex)

public float
protected void
public void
public void
setBrake(float brake, int wheelIndex)

public void
setCoordinateSystem(int rightIndex, int upIndex, int forwardIndex)

public void
setPitchControl(float pitch)

public void
setSteeringValue(float steering, int wheel)

public void
public void
setUserConstraintType(int userConstraintType)

public void
public void
updateFriction(float timeStep)

public void
updateSuspension(float deltaTime)

public void
updateVehicle(float step)

public void
updateWheelTransform(int wheelIndex, boolean interpolatedTransform)

public void
updateWheelTransform(int wheelIndex)

public void
updateWheelTransformsWS(btWheelInfo wheel, boolean interpolatedTransform)

public void
Inherited from com.badlogic.gdx.physics.bullet.dynamics.btActionInterface:
debugDrawgetCPtrupdateAction

Field Detail

swigCPtrback to summary
private long swigCPtr

Hides com.badlogic.gdx.physics.bullet.dynamics.btActionInterface.swigCPtr.

Constructor Detail

btRaycastVehicleback to summary
protected btRaycastVehicle(final String className, long cPtr, boolean cMemoryOwn)
btRaycastVehicleback to summary
public btRaycastVehicle(long cPtr, boolean cMemoryOwn)

Construct a new btRaycastVehicle, normally you should not need this constructor it's intended for low-level usage.

btRaycastVehicleback to summary
public btRaycastVehicle(btRaycastVehicle.btVehicleTuning tuning, btRigidBody chassis, btVehicleRaycaster raycaster)

Method Detail

addWheelback to summary
public btWheelInfo addWheel(Vector3 connectionPointCS0, Vector3 wheelDirectionCS0, Vector3 wheelAxleCS, float suspensionRestLength, float wheelRadius, btRaycastVehicle.btVehicleTuning tuning, boolean isFrontWheel)
applyEngineForceback to summary
public void applyEngineForce(float force, int wheel)
deleteback to summary
protected synchronized void delete()

Overrides com.badlogic.gdx.physics.bullet.dynamics.btActionInterface.delete.

Doc from com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates. Do not call directly, instead use the dispose() method.

Annotations
@Override
finalizeback to summary
protected void finalize() throws Throwable

Overrides com.badlogic.gdx.physics.bullet.dynamics.btActionInterface.finalize.

Doc from java.lang.Object.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup.

When running in a Java virtual machine in which finalization has been disabled or removed, the garbage collector will never call finalize(). In a Java virtual machine in which finalization is enabled, the garbage collector might call finalize only after an indefinite delay.

The general contract of finalize is that it is invoked if and when the Java virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.

The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.

The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.

After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.

The finalize method is never invoked more than once by a Java virtual machine for any given object.

Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored.

Annotations
@Override
Exceptions
Throwable:
the Exception raised by this method
getChassisWorldTransformback to summary
public Matrix4 getChassisWorldTransform()
getCPtrback to summary
public static long getCPtr(btRaycastVehicle obj)
getCurrentSpeedKmHourback to summary
public float getCurrentSpeedKmHour()
getForwardAxisback to summary
public int getForwardAxis()
getForwardVectorback to summary
public Vector3 getForwardVector()
getNumWheelsback to summary
public int getNumWheels()
getRightAxisback to summary
public int getRightAxis()
getRigidBodyback to summary
public btRigidBody getRigidBody()
getRigidBodyConstback to summary
public btRigidBody getRigidBodyConst()
getSteeringValueback to summary
public float getSteeringValue(int wheel)
getUpAxisback to summary
public int getUpAxis()
getUserConstraintIdback to summary
public int getUserConstraintId()
getUserConstraintTypeback to summary
public int getUserConstraintType()
getWheelInfoback to summary
public SWIGTYPE_p_btAlignedObjectArrayT_btWheelInfo_t getWheelInfo()
getWheelInfoback to summary
public btWheelInfo getWheelInfo(int index)
getWheelInfoConstback to summary
public btWheelInfo getWheelInfoConst(int index)
getWheelTransformWSback to summary
public Matrix4 getWheelTransformWS(int wheelIndex)
rayCastback to summary
public float rayCast(btWheelInfo wheel)
resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.dynamics.btActionInterface.reset.

Annotations
@Override
resetSuspensionback to summary
public void resetSuspension()
setBrakeback to summary
public void setBrake(float brake, int wheelIndex)
setCoordinateSystemback to summary
public void setCoordinateSystem(int rightIndex, int upIndex, int forwardIndex)
setPitchControlback to summary
public void setPitchControl(float pitch)
setSteeringValueback to summary
public void setSteeringValue(float steering, int wheel)
setUserConstraintIdback to summary
public void setUserConstraintId(int uid)
setUserConstraintTypeback to summary
public void setUserConstraintType(int userConstraintType)
setWheelInfoback to summary
public void setWheelInfo(SWIGTYPE_p_btAlignedObjectArrayT_btWheelInfo_t value)
updateFrictionback to summary
public void updateFriction(float timeStep)
updateSuspensionback to summary
public void updateSuspension(float deltaTime)
updateVehicleback to summary
public void updateVehicle(float step)
updateWheelTransformback to summary
public void updateWheelTransform(int wheelIndex, boolean interpolatedTransform)
updateWheelTransformback to summary
public void updateWheelTransform(int wheelIndex)
updateWheelTransformsWSback to summary
public void updateWheelTransformsWS(btWheelInfo wheel, boolean interpolatedTransform)
updateWheelTransformsWSback to summary
public void updateWheelTransformsWS(btWheelInfo wheel)
com.badlogic.gdx.physics.bullet.dynamics back to summary

public Class btRaycastVehicle.btVehicleTuning

extends BulletBase
Class Inheritance

Field Summary

Modifier and TypeField and Description
private long
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
classNamedestroyedswigCMemOwn

Constructor Summary

AccessConstructor and Description
protected
btVehicleTuning(final String className, long cPtr, boolean cMemoryOwn)

public
btVehicleTuning(long cPtr, boolean cMemoryOwn)

Construct a new btVehicleTuning, normally you should not need this constructor it's intended for low-level usage.

public

Method Summary

Modifier and TypeMethod and Description
protected synchronized void
delete()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates.

protected void
finalize()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

public static long
public float
public float
public float
public float
public float
public float
protected void
reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.BulletBase.reset.

public void
setFrictionSlip(float value)

public void
setMaxSuspensionForce(float value)

public void
public void
public void
setSuspensionDamping(float value)

public void
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
constructdestroydisposeequalsgetCPointerhashCodehasOwnershipisDisposedisObtainedobtainreleasereleaseOwnershiptakeOwnershiptoString

Field Detail

swigCPtrback to summary
private long swigCPtr

Constructor Detail

btVehicleTuningback to summary
protected btVehicleTuning(final String className, long cPtr, boolean cMemoryOwn)
btVehicleTuningback to summary
public btVehicleTuning(long cPtr, boolean cMemoryOwn)

Construct a new btVehicleTuning, normally you should not need this constructor it's intended for low-level usage.

btVehicleTuningback to summary
public btVehicleTuning()

Method Detail

deleteback to summary
protected synchronized void delete()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.delete.

Doc from com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates. Do not call directly, instead use the dispose() method.

Annotations
@Override
finalizeback to summary
protected void finalize() throws Throwable

Overrides com.badlogic.gdx.physics.bullet.BulletBase.finalize.

Doc from java.lang.Object.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup.

When running in a Java virtual machine in which finalization has been disabled or removed, the garbage collector will never call finalize(). In a Java virtual machine in which finalization is enabled, the garbage collector might call finalize only after an indefinite delay.

The general contract of finalize is that it is invoked if and when the Java virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.

The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.

The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.

After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.

The finalize method is never invoked more than once by a Java virtual machine for any given object.

Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored.

Annotations
@Override
Exceptions
Throwable:
the Exception raised by this method
getCPtrback to summary
public static long getCPtr(btRaycastVehicle.btVehicleTuning obj)
getFrictionSlipback to summary
public float getFrictionSlip()
getMaxSuspensionForceback to summary
public float getMaxSuspensionForce()
getMaxSuspensionTravelCmback to summary
public float getMaxSuspensionTravelCm()
getSuspensionCompressionback to summary
public float getSuspensionCompression()
getSuspensionDampingback to summary
public float getSuspensionDamping()
getSuspensionStiffnessback to summary
public float getSuspensionStiffness()
resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.BulletBase.reset.

Annotations
@Override
setFrictionSlipback to summary
public void setFrictionSlip(float value)
setMaxSuspensionForceback to summary
public void setMaxSuspensionForce(float value)
setMaxSuspensionTravelCmback to summary
public void setMaxSuspensionTravelCm(float value)
setSuspensionCompressionback to summary
public void setSuspensionCompression(float value)
setSuspensionDampingback to summary
public void setSuspensionDamping(float value)
setSuspensionStiffnessback to summary
public void setSuspensionStiffness(float value)