Package zombie.core.physics
Class CarController
java.lang.Object
zombie.core.physics.CarController
public class CarController
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CarController.BulletVariables
class
CarController.ClientControls
static class
CarController.GearInfo
-
Field Summary
Fields Modifier and Type Field Description boolean
acceleratorOn
boolean
brakeOn
float
BrakingForce
CarController.ClientControls
clientControls
float
clientForce
float
EngineForce
static CarController.GearInfo[]
gears
boolean
isEnable
float
speed
BaseVehicle
vehicleObject
-
Constructor Summary
Constructors Constructor Description CarController(BaseVehicle baseVehicle)
-
Method Summary
Modifier and Type Method Description void
accelerator(boolean boolean1)
void
brake(boolean boolean1)
void
debug()
void
drawCircle(float float1, float float2, float float3)
void
drawCircle(float float1, float float2, float float3, float float4, float float5, float float6, float float7)
void
drawRect(Vector3f vector3f, float float1, float float2, float float3, float float4)
void
drawRect(Vector3f vector3f, float float1, float float2, float float3, float float4, float float5, float float6, float float7)
CarController.GearInfo
findGear(float float1)
CarController.ClientControls
getClientControls()
void
park()
void
render()
void
setClientControls(CarController.ClientControls clientControls)
void
update()
void
updateControls()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
vehicleObject
-
clientForce
public float clientForce -
EngineForce
public float EngineForce -
BrakingForce
public float BrakingForce -
isEnable
public boolean isEnable -
acceleratorOn
public boolean acceleratorOn -
brakeOn
public boolean brakeOn -
speed
public float speed -
gears
-
clientControls
-
-
Constructor Details
-
CarController
-
-
Method Details
-
findGear
-
accelerator
public void accelerator(boolean boolean1) -
brake
public void brake(boolean boolean1) -
getClientControls
-
setClientControls
-
update
public void update() -
updateControls
public void updateControls() -
render
public void render() -
park
public void park() -
debug
public void debug() -
drawRect
-
drawRect
public void drawRect(Vector3f vector3f, float float1, float float2, float float3, float float4, float float5, float float6, float float7) -
drawCircle
public void drawCircle(float float1, float float2, float float3) -
drawCircle
public void drawCircle(float float1, float float2, float float3, float float4, float float5, float float6, float float7)
-