Class CarController
java.lang.Object
zombie.core.physics.CarController
Created by LEMMYCOOLER on 17/04/14.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanfloatfloatfloatstatic CarController.GearInfo[]booleanfloatfinal BaseVehicle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccelerator(boolean apply) voidbrake(boolean apply) voidvoidvoiddebug()voiddrawCircle(float x, float y, float radius) voiddrawCircle(float x, float y, float radius, float r, float g, float b, float a) voiddrawRect(org.joml.Vector3f vec, float x, float y, float w, float h) voiddrawRect(org.joml.Vector3f vec, float x, float y, float w, float h, float r, float g, float b) findGear(float speed) booleanbooleanvoidpark()voidupdate()voidvoid
-
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 apply) -
brake
public void brake(boolean apply) -
getClientControls
-
update
public void update() -
updateTrailer
public void updateTrailer() -
control_NoControl
public void control_NoControl() -
updateControls
public void updateControls() -
park
public void park() -
checkShouldBeActive
public void checkShouldBeActive() -
isGasPedalPressed
public boolean isGasPedalPressed() -
isBrakePedalPressed
public boolean isBrakePedalPressed() -
debug
public void debug() -
drawRect
public void drawRect(org.joml.Vector3f vec, float x, float y, float w, float h) -
drawRect
public void drawRect(org.joml.Vector3f vec, float x, float y, float w, float h, float r, float g, float b) -
drawCircle
public void drawCircle(float x, float y, float radius) -
drawCircle
public void drawCircle(float x, float y, float radius, float r, float g, float b, float a)
-