Class PxVehicleMultiWheelDriveDifferentialParams

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleMultiWheelDriveDifferentialParams
Direct Known Subclasses:
PxVehicleFourWheelDriveDifferentialParams, PxVehicleTankDriveDifferentialParams

public class PxVehicleMultiWheelDriveDifferentialParams extends NativeObject
PxVehicleMultiWheelDriveDifferentialParams specifies the wheels that are to receive drive torque from the differential and the division of torque between the wheels that are connected to the differential.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleMultiWheelDriveDifferentialParams

      protected PxVehicleMultiWheelDriveDifferentialParams(long address)
    • PxVehicleMultiWheelDriveDifferentialParams

      public PxVehicleMultiWheelDriveDifferentialParams()
  • Method Details

    • wrapPointer

      public static PxVehicleMultiWheelDriveDifferentialParams wrapPointer(long address)
    • arrayGet

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

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

      public static <T> PxVehicleMultiWheelDriveDifferentialParams 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 PxVehicleMultiWheelDriveDifferentialParams
    • destroy

      public void destroy()
    • getTorqueRatios

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

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

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

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

      public void setToDefault()
    • transformAndScale

      public PxVehicleMultiWheelDriveDifferentialParams transformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale)
      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: PxVehicleMultiWheelDriveDifferentialParams [Value]
    • isValid

      public boolean isValid(PxVehicleAxleDescription axleDesc)
      Parameters:
      axleDesc - WebIDL type: PxVehicleAxleDescription [Const, Ref]
      Returns:
      WebIDL type: boolean