Class PxVehicleCommandNonLinearResponseParams

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleCommandNonLinearResponseParams

public class PxVehicleCommandNonLinearResponseParams extends NativeObject
Note: Brake, drive and steer response typically reduce at increased longitudinal speed. Moreover, response to a brake, throttle or steer command is typically nonlinear and may be subject to dead zones where response is constant with either zero or non-zero response. PxVehicleCommandNonLinearResponseParams allows command responses to be authored as multi-variate piecewise polynomials with normalized command response a function of command value and longitudinal speed.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleCommandNonLinearResponseParams

      protected PxVehicleCommandNonLinearResponseParams(long address)
    • PxVehicleCommandNonLinearResponseParams

      public PxVehicleCommandNonLinearResponseParams()
  • Method Details

    • wrapPointer

      public static PxVehicleCommandNonLinearResponseParams wrapPointer(long address)
    • arrayGet

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

      public void destroy()
    • getSpeedResponses

      public float getSpeedResponses(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: float
    • setSpeedResponses

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

      public short getNbSpeedResponses()
      The number of speeds and normalized responses.
    • setNbSpeedResponses

      public void setNbSpeedResponses(short value)
      The number of speeds and normalized responses.
    • getSpeedResponsesPerCommandValue

      public short getSpeedResponsesPerCommandValue(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: short
    • setSpeedResponsesPerCommandValue

      public void setSpeedResponsesPerCommandValue(int index, short value)
      Parameters:
      index - Array index
      value - WebIDL type: short
    • getNbSpeedResponsesPerCommandValue

      public short getNbSpeedResponsesPerCommandValue(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: short
    • setNbSpeedResponsesPerCommandValue

      public void setNbSpeedResponsesPerCommandValue(int index, short value)
      Parameters:
      index - Array index
      value - WebIDL type: short
    • getCommandValues

      public float getCommandValues(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: float
    • setCommandValues

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

      public short getNbCommandValues()
      The number of command values.
    • setNbCommandValues

      public void setNbCommandValues(short value)
      The number of command values.
    • clear

      public void clear()
    • addResponse

      public boolean addResponse(PxVehicleCommandValueResponseTable commandValueSpeedResponses)
      Add a table of normalised response vs speed and associated it with a specified command value. Note: commandValueSpeedResponses must be authored as a series of strictly increasing speeds with form {speed, normalizedResponse} Note: The responses added must form a series of strictly increasing command values.