Class Vehicle.Gearbox

java.lang.Object
pl.AWTGameEngine.components.base.ObjectComponent
pl.AWTGameEngine.components.physics.Vehicle.Gearbox
Enclosing class:
Vehicle

public static class Vehicle.Gearbox extends ObjectComponent
  • Field Details

    • vehicle

      protected Vehicle vehicle
  • Constructor Details

  • Method Details

    • onAddComponent

      public void onAddComponent()
      Description copied from class: ObjectComponent
      Method will be called when component will be added to the object.
    • init

      public void init(physx.vehicle2.PxVehicleGearboxParams gearbox)
    • setGearboxType

      public void setGearboxType(Vehicle.Gearbox.GearboxType gearboxType)
    • setGearboxType

      public void setGearboxType(String type)
    • setGearRatios

      public void setGearRatios(FloatValues ratios)
    • setNeutralGearIndex

      public void setNeutralGearIndex(int index)
    • setSwitchTime

      public void setSwitchTime(float switchTime)
    • setCurrentGear

      public void setCurrentGear(int gear)
    • setTargetGear

      public void setTargetGear(int gear)
    • getGearboxType

      public Vehicle.Gearbox.GearboxType getGearboxType()
    • getGearRatios

      public FloatValues getGearRatios()
    • getNeutralGearIndex

      public int getNeutralGearIndex()
    • getCurrentGear

      public int getCurrentGear()
    • getSwitchTime

      public float getSwitchTime()
    • getVehicle

      public Vehicle getVehicle()