com.bulletphysics.demos.vehicle
Class VehicleDemo
java.lang.Object
com.bulletphysics.demos.opengl.DemoApplication
com.bulletphysics.demos.vehicle.VehicleDemo
public class VehicleDemo
- extends DemoApplication
VehicleDemo shows how to setup and use the built-in raycast vehicle.
Fields inherited from class com.bulletphysics.demos.opengl.DemoApplication |
azi, cameraDistance, cameraPosition, cameraTargetPosition, cameraUp, clock, debugMode, dynamicsWorld, ele, forwardAxis, gl, glutScreenHeight, glutScreenWidth, gShapePtr, idle, lastKey, maxNumObjects, numObjects, pickConstraint, pickedBody, scaleBottom, scaleFactor, ShootBoxInitialSpeed, shootBoxShape, singleStep, startTransforms, stepping |
Methods inherited from class com.bulletphysics.demos.opengl.DemoApplication |
destroy, drawString, getCameraDistance, getCameraPosition, getCameraTargetPosition, getDebugMode, getDeltaTimeMicroseconds, getDynamicsWorld, getRayTo, isIdle, keyboardCallback, localCreateRigidBody, mouseFunc, mouseMotionFunc, moveAndDisplay, myinit, resetPerspectiveProjection, reshape, setCameraDistance, setCameraForwardAxis, setCameraUp, setDebugMode, setIdle, setOrthographicProjection, shootBox, showProfileInfo, stepBack, stepFront, stepLeft, stepRight, toggleIdle, zoomIn, zoomOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
carChassis
public RigidBody carChassis
collisionShapes
public java.util.List<CollisionShape> collisionShapes
overlappingPairCache
public BroadphaseInterface overlappingPairCache
dispatcher
public CollisionDispatcher dispatcher
constraintSolver
public ConstraintSolver constraintSolver
collisionConfiguration
public DefaultCollisionConfiguration collisionConfiguration
indexVertexArrays
public TriangleIndexVertexArray indexVertexArrays
vertices
public java.nio.ByteBuffer vertices
tuning
public VehicleTuning tuning
vehicleRayCaster
public VehicleRaycaster vehicleRayCaster
vehicle
public RaycastVehicle vehicle
cameraHeight
public float cameraHeight
minCameraDistance
public float minCameraDistance
maxCameraDistance
public float maxCameraDistance
VehicleDemo
public VehicleDemo(IGL gl)
initPhysics
public void initPhysics()
- Specified by:
initPhysics
in class DemoApplication
renderme
public void renderme()
- Overrides:
renderme
in class DemoApplication
clientMoveAndDisplay
public void clientMoveAndDisplay()
- Specified by:
clientMoveAndDisplay
in class DemoApplication
displayCallback
public void displayCallback()
- Overrides:
displayCallback
in class DemoApplication
clientResetScene
public void clientResetScene()
- Overrides:
clientResetScene
in class DemoApplication
specialKeyboardUp
public void specialKeyboardUp(int key,
int x,
int y)
- Overrides:
specialKeyboardUp
in class DemoApplication
specialKeyboard
public void specialKeyboard(int key,
int x,
int y)
- Overrides:
specialKeyboard
in class DemoApplication
updateCamera
public void updateCamera()
- Overrides:
updateCamera
in class DemoApplication
main
public static void main(java.lang.String[] args)
throws org.lwjgl.LWJGLException
- Throws:
org.lwjgl.LWJGLException