Class PxVehicleGearboxState

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleGearboxState

public class PxVehicleGearboxState extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleGearboxState

      protected PxVehicleGearboxState(long address)
    • PxVehicleGearboxState

      public PxVehicleGearboxState()
  • Method Details

    • wrapPointer

      public static PxVehicleGearboxState wrapPointer(long address)
    • arrayGet

      public static PxVehicleGearboxState arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • getCurrentGear

      public int getCurrentGear()
      Current gear
    • setCurrentGear

      public void setCurrentGear(int value)
      Current gear
    • getTargetGear

      public int getTargetGear()
      Target gear (different from current gear if a gear change is underway)
    • setTargetGear

      public void setTargetGear(int value)
      Target gear (different from current gear if a gear change is underway)
    • getGearSwitchTime

      public float getGearSwitchTime()
      Reported time that has passed since gear change started.

      The special value PX_VEHICLE_NO_GEAR_SWITCH_PENDING denotes that there is currently no gear change underway.

      If a gear switch was initiated, the special value PX_VEHICLE_GEAR_SWITCH_INITIATED will be used temporarily but get translated to 0 in the gearbox update immediately. This state might only get encountered, if the vehicle component update is split into multiple sequences that do not run in one go.

      Unit: time

    • setGearSwitchTime

      public void setGearSwitchTime(float value)
      Reported time that has passed since gear change started.

      The special value PX_VEHICLE_NO_GEAR_SWITCH_PENDING denotes that there is currently no gear change underway.

      If a gear switch was initiated, the special value PX_VEHICLE_GEAR_SWITCH_INITIATED will be used temporarily but get translated to 0 in the gearbox update immediately. This state might only get encountered, if the vehicle component update is split into multiple sequences that do not run in one go.

      Unit: time

    • setToDefault

      public void setToDefault()