-
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 PxVehicleSuspensionStatearrayGet(long baseAddress, int index) voiddestroy()floatjounce is the distance from maximum droop.floatjounceSpeed is the rate of change of jounce.floatseparation holds extra information about the contact state of the wheel with the ground.voidsetJounce(float value) jounce is the distance from maximum droop.voidsetJounceSpeed(float value) jounceSpeed is the rate of change of jounce.voidsetSeparation(float value) separation holds extra information about the contact state of the wheel with the ground.voidsetToDefault(float _jounce, float _separation) static PxVehicleSuspensionStatewrapPointer(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
-
PxVehicleSuspensionState
protected PxVehicleSuspensionState(long address) -
PxVehicleSuspensionState
public PxVehicleSuspensionState()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getJounce
public float getJounce()jounce is the distance from maximum droop. Note: jounce is positive semi-definite Note: A value of 0.0 represents the suspension at maximum droop and zero suspension force. Note: A value of suspensionTravelDist represents the suspension at maximum compression. Note: jounce is clamped in range [0, suspensionTravelDist]. -
setJounce
public void setJounce(float value) jounce is the distance from maximum droop. Note: jounce is positive semi-definite Note: A value of 0.0 represents the suspension at maximum droop and zero suspension force. Note: A value of suspensionTravelDist represents the suspension at maximum compression. Note: jounce is clamped in range [0, suspensionTravelDist]. -
getJounceSpeed
public float getJounceSpeed()jounceSpeed is the rate of change of jounce. -
setJounceSpeed
public void setJounceSpeed(float value) jounceSpeed is the rate of change of jounce. -
getSeparation
public float getSeparation()separation holds extra information about the contact state of the wheel with the ground.If the suspension travel range is enough to place the wheel on the ground, then separation will be 0. If separation holds a negative value, then the wheel penetrates into the ground at maximum compression as well as maximum droop. The suspension would need to go beyond maximum compression (ground normal pointing in opposite direction of suspension) or beyond maximum droop (ground normal pointing in same direction as suspension) to place the wheel on the ground. In that case the separation value defines how much the wheel penetrates into the ground along the ground plane normal. This penetration may be resolved by using a constraint that simulates the effect of a bump stop. If separation holds a positive value, then the wheel does not penetrate the ground at maximum droop but can not touch the ground because the suspension would need to expand beyond max droop to reach it or because the suspension could not expand fast enough to reach the ground.
-
setSeparation
public void setSeparation(float value) separation holds extra information about the contact state of the wheel with the ground.If the suspension travel range is enough to place the wheel on the ground, then separation will be 0. If separation holds a negative value, then the wheel penetrates into the ground at maximum compression as well as maximum droop. The suspension would need to go beyond maximum compression (ground normal pointing in opposite direction of suspension) or beyond maximum droop (ground normal pointing in same direction as suspension) to place the wheel on the ground. In that case the separation value defines how much the wheel penetrates into the ground along the ground plane normal. This penetration may be resolved by using a constraint that simulates the effect of a bump stop. If separation holds a positive value, then the wheel does not penetrate the ground at maximum droop but can not touch the ground because the suspension would need to expand beyond max droop to reach it or because the suspension could not expand fast enough to reach the ground.
-
setToDefault
public void setToDefault(float _jounce, float _separation) - Parameters:
_jounce- WebIDL type: float_separation- WebIDL type: float
-