Class CarController

java.lang.Object
zombie.core.physics.CarController

public final class CarController extends Object
Created by LEMMYCOOLER on 17/04/14.
  • Field Details

    • vehicleObject

      public final BaseVehicle 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

      public static CarController.GearInfo[] gears
    • clientControls

      public final CarController.ClientControls clientControls
  • Constructor Details

    • CarController

      public CarController(BaseVehicle vehicleObject)
  • Method Details

    • findGear

      public CarController.GearInfo findGear(float speed)
    • accelerator

      public void accelerator(boolean apply)
    • brake

      public void brake(boolean apply)
    • getClientControls

      public CarController.ClientControls 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)