Class PxVehicleCommandState

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleCommandState

public class PxVehicleCommandState extends NativeObject
A description of the state of commands that are applied to the vehicle Note: brakes[0] and brakes[1] may be used to distinguish brake and handbrake controls.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleCommandState

      protected PxVehicleCommandState(long address)
    • PxVehicleCommandState

      public PxVehicleCommandState()
  • Method Details

    • wrapPointer

      public static PxVehicleCommandState wrapPointer(long address)
    • arrayGet

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

      public void destroy()
    • getBrakes

      public float getBrakes(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: float
    • setBrakes

      public void setBrakes(int index, float value)
      Parameters:
      index - Array index
      value - WebIDL type: float
    • getNbBrakes

      public int getNbBrakes()
    • setNbBrakes

      public void setNbBrakes(int value)
    • getThrottle

      public float getThrottle()
      The instantaneous state of the throttle controller in range [0,1] with 1 denoting fully pressed and 0 fully depressed.
    • setThrottle

      public void setThrottle(float value)
      The instantaneous state of the throttle controller in range [0,1] with 1 denoting fully pressed and 0 fully depressed.
    • getSteer

      public float getSteer()
      The instantaneous state of the steer controller in range [-1,1].
    • setSteer

      public void setSteer(float value)
      The instantaneous state of the steer controller in range [-1,1].
    • setToDefault

      public void setToDefault()