Class PxVehicleEngineParams

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleEngineParams

public class PxVehicleEngineParams extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleEngineParams

      protected PxVehicleEngineParams(long address)
    • PxVehicleEngineParams

      public PxVehicleEngineParams()
  • Method Details

    • wrapPointer

      public static PxVehicleEngineParams wrapPointer(long address)
    • arrayGet

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

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

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

      public void destroy()
    • getTorqueCurve

      public PxVehicleTorqueCurveLookupTable getTorqueCurve()
      Returns:
      WebIDL type: PxVehicleTorqueCurveLookupTable [Value]
    • setTorqueCurve

      public void setTorqueCurve(PxVehicleTorqueCurveLookupTable value)
      Parameters:
      value - WebIDL type: PxVehicleTorqueCurveLookupTable [Value]
    • getMoi

      public float getMoi()
      Returns:
      WebIDL type: float
    • setMoi

      public void setMoi(float value)
      Parameters:
      value - WebIDL type: float
    • getPeakTorque

      public float getPeakTorque()
      Returns:
      WebIDL type: float
    • setPeakTorque

      public void setPeakTorque(float value)
      Parameters:
      value - WebIDL type: float
    • getIdleOmega

      public float getIdleOmega()
      Returns:
      WebIDL type: float
    • setIdleOmega

      public void setIdleOmega(float value)
      Parameters:
      value - WebIDL type: float
    • getMaxOmega

      public float getMaxOmega()
      Returns:
      WebIDL type: float
    • setMaxOmega

      public void setMaxOmega(float value)
      Parameters:
      value - WebIDL type: float
    • getDampingRateFullThrottle

      public float getDampingRateFullThrottle()
      Returns:
      WebIDL type: float
    • setDampingRateFullThrottle

      public void setDampingRateFullThrottle(float value)
      Parameters:
      value - WebIDL type: float
    • getDampingRateZeroThrottleClutchEngaged

      public float getDampingRateZeroThrottleClutchEngaged()
      Returns:
      WebIDL type: float
    • setDampingRateZeroThrottleClutchEngaged

      public void setDampingRateZeroThrottleClutchEngaged(float value)
      Parameters:
      value - WebIDL type: float
    • getDampingRateZeroThrottleClutchDisengaged

      public float getDampingRateZeroThrottleClutchDisengaged()
      Returns:
      WebIDL type: float
    • setDampingRateZeroThrottleClutchDisengaged

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

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

      public boolean isValid()
      Returns:
      WebIDL type: boolean