Class PxVehicleClutchCommandResponseParams

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleClutchCommandResponseParams

public class PxVehicleClutchCommandResponseParams extends NativeObject
Specifies the maximum clutch strength that occurs when the clutch pedal is fully disengaged and the clutch is fully engaged.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleClutchCommandResponseParams

      protected PxVehicleClutchCommandResponseParams(long address)
    • PxVehicleClutchCommandResponseParams

      public PxVehicleClutchCommandResponseParams()
  • Method Details

    • wrapPointer

      public static PxVehicleClutchCommandResponseParams wrapPointer(long address)
    • arrayGet

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

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

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

      public void destroy()
    • getMaxResponse

      public float getMaxResponse()
      Strength of clutch.

      Note: The clutch is the mechanism that couples the engine to the wheels. A stronger clutch more strongly couples the engine to the wheels, while a clutch of strength zero completely decouples the engine from the wheels. Stronger clutches more quickly bring the wheels and engine into equilibrium, while weaker clutches take longer, resulting in periods of clutch slip and delays in power transmission from the engine to the wheels. The torque generated by the clutch is proportional to the clutch strength and the velocity difference between the engine's rotational speed and the rotational speed of the driven wheels after accounting for the gear ratio. The torque at the clutch is applied negatively to the engine and positively to the driven wheels.

      Range: [0,inf)
      Unit: torque * time = mass * (length^2) / time

    • setMaxResponse

      public void setMaxResponse(float value)
      Strength of clutch.

      Note: The clutch is the mechanism that couples the engine to the wheels. A stronger clutch more strongly couples the engine to the wheels, while a clutch of strength zero completely decouples the engine from the wheels. Stronger clutches more quickly bring the wheels and engine into equilibrium, while weaker clutches take longer, resulting in periods of clutch slip and delays in power transmission from the engine to the wheels. The torque generated by the clutch is proportional to the clutch strength and the velocity difference between the engine's rotational speed and the rotational speed of the driven wheels after accounting for the gear ratio. The torque at the clutch is applied negatively to the engine and positively to the driven wheels.

      Range: [0,inf)
      Unit: torque * time = mass * (length^2) / time

    • transformAndScale

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

      public boolean isValid()
      Returns:
      WebIDL type: boolean