Class PxVehicleTankDriveDifferentialParams


public class PxVehicleTankDriveDifferentialParams extends PxVehicleMultiWheelDriveDifferentialParams
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleTankDriveDifferentialParams

      protected PxVehicleTankDriveDifferentialParams(long address)
    • PxVehicleTankDriveDifferentialParams

      public PxVehicleTankDriveDifferentialParams()
  • Method Details

    • wrapPointer

      public static PxVehicleTankDriveDifferentialParams wrapPointer(long address)
    • arrayGet

      public static PxVehicleTankDriveDifferentialParams arrayGet(long baseAddress, int index)
    • createAt

      public static PxVehicleTankDriveDifferentialParams createAt(long address)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      Returns:
      Stack allocated object of PxVehicleTankDriveDifferentialParams
    • createAt

      public static <T> PxVehicleTankDriveDifferentialParams createAt(T allocator, NativeObject.Allocator<T> allocate)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      Returns:
      Stack allocated object of PxVehicleTankDriveDifferentialParams
    • destroy

      public void destroy()
      Overrides:
      destroy in class PxVehicleMultiWheelDriveDifferentialParams
    • getNbTracks

      public int getNbTracks()
      Returns:
      WebIDL type: unsigned long
    • setNbTracks

      public void setNbTracks(int value)
      Parameters:
      value - WebIDL type: unsigned long
    • getThrustIdPerTrack

      public int getThrustIdPerTrack(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: unsigned long
    • setThrustIdPerTrack

      public void setThrustIdPerTrack(int index, int value)
      Parameters:
      index - Array index
      value - WebIDL type: unsigned long
    • getNbWheelsPerTrack

      public int getNbWheelsPerTrack(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: unsigned long
    • setNbWheelsPerTrack

      public void setNbWheelsPerTrack(int index, int value)
      Parameters:
      index - Array index
      value - WebIDL type: unsigned long
    • getTrackToWheelIds

      public int getTrackToWheelIds(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: unsigned long
    • setTrackToWheelIds

      public void setTrackToWheelIds(int index, int value)
      Parameters:
      index - Array index
      value - WebIDL type: unsigned long
    • getWheelIdsInTrackOrder

      public int getWheelIdsInTrackOrder(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: unsigned long
    • setWheelIdsInTrackOrder

      public void setWheelIdsInTrackOrder(int index, int value)
      Parameters:
      index - Array index
      value - WebIDL type: unsigned long
    • getTorqueRatios

      public float getTorqueRatios(int index)
      Overrides:
      getTorqueRatios in class PxVehicleMultiWheelDriveDifferentialParams
      Parameters:
      index - Array index
      Returns:
      WebIDL type: float
    • setTorqueRatios

      public void setTorqueRatios(int index, float value)
      Overrides:
      setTorqueRatios in class PxVehicleMultiWheelDriveDifferentialParams
      Parameters:
      index - Array index
      value - WebIDL type: float
    • getAveWheelSpeedRatios

      public float getAveWheelSpeedRatios(int index)
      Overrides:
      getAveWheelSpeedRatios in class PxVehicleMultiWheelDriveDifferentialParams
      Parameters:
      index - Array index
      Returns:
      WebIDL type: float
    • setAveWheelSpeedRatios

      public void setAveWheelSpeedRatios(int index, float value)
      Overrides:
      setAveWheelSpeedRatios in class PxVehicleMultiWheelDriveDifferentialParams
      Parameters:
      index - Array index
      value - WebIDL type: float
    • setToDefault

      public void setToDefault()
      Overrides:
      setToDefault in class PxVehicleMultiWheelDriveDifferentialParams
    • getNbWheelsInTrack

      public int getNbWheelsInTrack(int i)
      Parameters:
      i - WebIDL type: unsigned long
      Returns:
      WebIDL type: unsigned long
    • getWheelsInTrack

      public PxU32ConstPtr getWheelsInTrack(int i)
      Parameters:
      i - WebIDL type: unsigned long
      Returns:
      WebIDL type: PxU32ConstPtr [Value]
    • getWheelInTrack

      public int getWheelInTrack(int j, int i)
      Parameters:
      j - WebIDL type: unsigned long
      i - WebIDL type: unsigned long
      Returns:
      WebIDL type: unsigned long
    • getThrustControllerIndex

      public int getThrustControllerIndex(int i)
      Parameters:
      i - WebIDL type: unsigned long
      Returns:
      WebIDL type: unsigned long
    • transformAndScale

      public PxVehicleTankDriveDifferentialParams transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale)
      Overrides:
      transformAndScale in class PxVehicleMultiWheelDriveDifferentialParams
      Parameters:
      srcFrame - WebIDL type: PxVehicleFrame [Const, Ref]
      trgFrame - WebIDL type: PxVehicleFrame [Const, Ref]
      srcScale - WebIDL type: PxVehicleScale [Const, Ref]
      trgScale - WebIDL type: PxVehicleScale [Const, Ref]
      Returns:
      WebIDL type: PxVehicleTankDriveDifferentialParams [Value]