java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleTireSlipParams
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxVehicleTireSlipParamsarrayGet(long baseAddress, int index) static PxVehicleTireSlipParamscreateAt(long address) static <T> PxVehicleTireSlipParamscreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatThe 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.floatThe 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.floatThe 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.booleanisValid()voidsetMinActiveLongSlipDenominator(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.voidsetMinLatSlipDenominator(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.voidsetMinPassiveLongSlipDenominator(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.voidtransformAndScale(PxVehicleFrame srcFrame, PxVehicleFrame trgFrame, PxVehicleScale srcScale, PxVehicleScale trgScale) static PxVehicleTireSlipParamswrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
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
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxVehicleTireSlipParams
-
createAt
- 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
-