Class PxVehicleGearboxParams

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleGearboxParams

public class PxVehicleGearboxParams extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleGearboxParams

      protected PxVehicleGearboxParams(long address)
    • PxVehicleGearboxParams

      public PxVehicleGearboxParams()
  • Method Details

    • wrapPointer

      public static PxVehicleGearboxParams wrapPointer(long address)
    • arrayGet

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

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

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

      public void destroy()
    • getNeutralGear

      public int getNeutralGear()
      Returns:
      WebIDL type: unsigned long
    • setNeutralGear

      public void setNeutralGear(int value)
      Parameters:
      value - WebIDL type: unsigned long
    • getRatios

      public float getRatios(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: float
    • setRatios

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

      public float getFinalRatio()
      Returns:
      WebIDL type: float
    • setFinalRatio

      public void setFinalRatio(float value)
      Parameters:
      value - WebIDL type: float
    • getNbRatios

      public int getNbRatios()
      Returns:
      WebIDL type: unsigned long
    • setNbRatios

      public void setNbRatios(int value)
      Parameters:
      value - WebIDL type: unsigned long
    • getSwitchTime

      public float getSwitchTime()
      Returns:
      WebIDL type: float
    • setSwitchTime

      public void setSwitchTime(float value)
      Parameters:
      value - WebIDL type: float
    • transformAndScale

      public PxVehicleGearboxParams 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: PxVehicleGearboxParams [Value]
    • isValid

      public boolean isValid()
      Returns:
      WebIDL type: boolean