public class RegularCarModel
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
RegularCarModel.CarDefinition |
static class |
RegularCarModel.MdarsCarDefinition |
static class |
RegularCarModel.TruckCarDefinition |
static class |
RegularCarModel.WheelDefinition |
Modifier and Type | Field and Description |
---|---|
static RegularCarModel.CarDefinition |
carDefinition |
Constructor and Description |
---|
RegularCarModel(javax.vecmath.Vector3f initialTranslation) |
Modifier and Type | Method and Description |
---|---|
RegularCarModel |
clone() |
com.bulletphysics.collision.shapes.CollisionShape |
getCollisionShape() |
com.bulletphysics.collision.shapes.CompoundShape |
getCompound() |
javax.vecmath.Vector3f |
getForwardVector() |
javax.vecmath.Vector3f |
getPosition() |
com.bulletphysics.dynamics.RigidBody |
getRigidBody() |
javax.vecmath.Quat4f |
getRotation() |
float |
getSpeed() |
com.bulletphysics.dynamics.vehicle.RaycastVehicle |
getVehicle() |
javax.vecmath.Quat4f |
getWheelRotation(java.lang.String wheelName) |
javax.vecmath.Vector3f |
getWheelTranslation(java.lang.String wheelName) |
void |
move() |
void |
setBreakingForce(float breakingForce) |
void |
setEngineForce(float engineForce) |
void |
setSteering(float value) |
public static final RegularCarModel.CarDefinition carDefinition
public RegularCarModel(javax.vecmath.Vector3f initialTranslation)
public void move()
public javax.vecmath.Vector3f getPosition()
public javax.vecmath.Quat4f getRotation()
public javax.vecmath.Vector3f getForwardVector()
public float getSpeed()
public javax.vecmath.Quat4f getWheelRotation(java.lang.String wheelName)
public javax.vecmath.Vector3f getWheelTranslation(java.lang.String wheelName)
public com.bulletphysics.collision.shapes.CollisionShape getCollisionShape()
public com.bulletphysics.collision.shapes.CompoundShape getCompound()
public com.bulletphysics.dynamics.RigidBody getRigidBody()
public void setSteering(float value)
public void setEngineForce(float engineForce)
public void setBreakingForce(float breakingForce)
public com.bulletphysics.dynamics.vehicle.RaycastVehicle getVehicle()
public RegularCarModel clone()
clone
in class java.lang.Object