Class PxVehicleTireSlipParams

java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleTireSlipParams

public class PxVehicleTireSlipParams extends NativeObject
Tire slip values are computed using ratios with potential for divide-by-zero errors. PxVehicleTireSlipParams introduces a minimum value for the denominator of each of these ratios.
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxVehicleTireSlipParams

      protected PxVehicleTireSlipParams(long address)
    • PxVehicleTireSlipParams

      public PxVehicleTireSlipParams()
  • Method Details

    • wrapPointer

      public static PxVehicleTireSlipParams wrapPointer(long address)
    • arrayGet

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

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

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

      public void destroy()
    • getMinLatSlipDenominator

      public float getMinLatSlipDenominator()
      The lateral slip angle is typically computed as a function of the ratio of lateral and longitudinal speeds of the rigid body in the tire's frame. This leads to a divide-by-zero in the event that the longitudinal speed approaches zero. The parameter minLatSlipDenominator sets a minimum denominator for the ratio of speeds used to compute the lateral slip angle. Note: Larger timesteps typically require larger values of minLatSlipDenominator.

      Range: (0, inf)
      Unit: velocity = length / time

    • setMinLatSlipDenominator

      public void setMinLatSlipDenominator(float value)
      The lateral slip angle is typically computed as a function of the ratio of lateral and longitudinal speeds of the rigid body in the tire's frame. This leads to a divide-by-zero in the event that the longitudinal speed approaches zero. The parameter minLatSlipDenominator sets a minimum denominator for the ratio of speeds used to compute the lateral slip angle. Note: Larger timesteps typically require larger values of minLatSlipDenominator.

      Range: (0, inf)
      Unit: velocity = length / time

    • getMinPassiveLongSlipDenominator

      public float getMinPassiveLongSlipDenominator()
      The longitudinal slip represents the difference between the longitudinal speed of the rigid body in the tire's frame and the linear speed arising from the rotation of the wheel. This is typically normalized using the reciprocal of the longitudinal speed of the rigid body in the tire's frame. This leads to a divide-by-zero in the event that the longitudinal speed approaches zero. The parameter minPassiveLongSlipDenominator sets a minimum denominator for the normalized longitudinal slip when the wheel experiences zero drive torque and zero brake torque and zero handbrake torque. The aim is to bring the vehicle to rest without experiencing wheel rotational speeds that oscillate around zero. Note: The vehicle will come to rest more smoothly with larger values of minPassiveLongSlipDenominator, particularly with large timesteps that often lead to oscillation in wheel rotation speeds when the wheel rotation speed approaches zero. Note: It is recommended that minActiveLongSlipDenominator < minPassiveLongSlipDenominator.

      Range: (0, inf)
      Unit: velocity = length / time

    • setMinPassiveLongSlipDenominator

      public void setMinPassiveLongSlipDenominator(float value)
      The longitudinal slip represents the difference between the longitudinal speed of the rigid body in the tire's frame and the linear speed arising from the rotation of the wheel. This is typically normalized using the reciprocal of the longitudinal speed of the rigid body in the tire's frame. This leads to a divide-by-zero in the event that the longitudinal speed approaches zero. The parameter minPassiveLongSlipDenominator sets a minimum denominator for the normalized longitudinal slip when the wheel experiences zero drive torque and zero brake torque and zero handbrake torque. The aim is to bring the vehicle to rest without experiencing wheel rotational speeds that oscillate around zero. Note: The vehicle will come to rest more smoothly with larger values of minPassiveLongSlipDenominator, particularly with large timesteps that often lead to oscillation in wheel rotation speeds when the wheel rotation speed approaches zero. Note: It is recommended that minActiveLongSlipDenominator < minPassiveLongSlipDenominator.

      Range: (0, inf)
      Unit: velocity = length / time

    • getMinActiveLongSlipDenominator

      public float getMinActiveLongSlipDenominator()
      The longitudinal slip represents the difference between the longitudinal speed of the rigid body in the tire's frame and the linear speed arising from the rotation of the wheel. This is typically normalized using the reciprocal of the longitudinal speed of the rigid body in the tire's frame. This leads to a divide-by-zero in the event that the longitudinal speed approaches zero. The parameter minActiveLongSlipDenominator sets a minimum denominator for the normalized longitudinal slip when the wheel experiences either a non-zero drive torque or a non-zero brake torque or a non-zero handbrake torque. Note: Larger timesteps typically require larger values of minActiveLongSlipDenominator to avoid instabilities occurring when the vehicle is aggressively throttled from rest. Note: It is recommended that minActiveLongSlipDenominator < minPassiveLongSlipDenominator.

      Range: (0, inf)
      Unit: velocity = length / time

    • setMinActiveLongSlipDenominator

      public void setMinActiveLongSlipDenominator(float value)
      The longitudinal slip represents the difference between the longitudinal speed of the rigid body in the tire's frame and the linear speed arising from the rotation of the wheel. This is typically normalized using the reciprocal of the longitudinal speed of the rigid body in the tire's frame. This leads to a divide-by-zero in the event that the longitudinal speed approaches zero. The parameter minActiveLongSlipDenominator sets a minimum denominator for the normalized longitudinal slip when the wheel experiences either a non-zero drive torque or a non-zero brake torque or a non-zero handbrake torque. Note: Larger timesteps typically require larger values of minActiveLongSlipDenominator to avoid instabilities occurring when the vehicle is aggressively throttled from rest. Note: It is recommended that minActiveLongSlipDenominator < minPassiveLongSlipDenominator.

      Range: (0, inf)
      Unit: velocity = length / time

    • setToDefault

      public void setToDefault()
    • transformAndScale

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

      public boolean isValid()
      Returns:
      WebIDL type: boolean