java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehiclePhysXConstraintState
PxVehiclePhysXConstraintState is a data structure used to write
constraint data to the internal state of the associated PxScene.
-
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 TypeMethodDescriptionarrayGet(long baseAddress, int index) voiddestroy()floatrestitution value of the restitution model used to generate a target velocity that will resolve the geometric error.booleana boolean describing whether to trigger a suspension limit constraint.angular component of velocity jacobian in the world frame.floatthe excess suspension compression to be resolved by the constraint that cannot be resolved due to the travel limit of the suspension spring.linear component of velocity jacobian in the world frame.booleangetTireActiveStatus(int index) getTireAngulars(int index) floatgetTireDamping(int index) getTireLinears(int index) voidsetRestitution(float value) restitution value of the restitution model used to generate a target velocity that will resolve the geometric error.voidsetSuspActiveStatus(boolean value) a boolean describing whether to trigger a suspension limit constraint.voidsetSuspAngular(PxVec3 value) angular component of velocity jacobian in the world frame.voidsetSuspGeometricError(float value) the excess suspension compression to be resolved by the constraint that cannot be resolved due to the travel limit of the suspension spring.voidsetSuspLinear(PxVec3 value) linear component of velocity jacobian in the world frame.voidsetTireActiveStatus(int index, boolean value) voidsetTireAngulars(int index, PxVec3 value) voidsetTireDamping(int index, float value) voidsetTireLinears(int index, PxVec3 value) voidwrapPointer(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
-
PxVehiclePhysXConstraintState
protected PxVehiclePhysXConstraintState(long address) -
PxVehiclePhysXConstraintState
public PxVehiclePhysXConstraintState()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getTireActiveStatus
public boolean getTireActiveStatus(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: boolean
-
setTireActiveStatus
public void setTireActiveStatus(int index, boolean value) - Parameters:
index- Array indexvalue- WebIDL type: boolean
-
getTireLinears
- Parameters:
index- Array index- Returns:
- WebIDL type:
PxVec3[Value]
-
setTireLinears
- Parameters:
index- Array indexvalue- WebIDL type:PxVec3[Value]
-
getTireAngulars
- Parameters:
index- Array index- Returns:
- WebIDL type:
PxVec3[Value]
-
setTireAngulars
- Parameters:
index- Array indexvalue- WebIDL type:PxVec3[Value]
-
getTireDamping
public float getTireDamping(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setTireDamping
public void setTireDamping(int index, float value) - Parameters:
index- Array indexvalue- WebIDL type: float
-
getSuspActiveStatus
public boolean getSuspActiveStatus()a boolean describing whether to trigger a suspension limit constraint. -
setSuspActiveStatus
public void setSuspActiveStatus(boolean value) a boolean describing whether to trigger a suspension limit constraint. -
getSuspLinear
linear component of velocity jacobian in the world frame. -
setSuspLinear
linear component of velocity jacobian in the world frame. -
getSuspAngular
angular component of velocity jacobian in the world frame. -
setSuspAngular
angular component of velocity jacobian in the world frame. -
getSuspGeometricError
public float getSuspGeometricError()the excess suspension compression to be resolved by the constraint that cannot be resolved due to the travel limit of the suspension spring.Note: The expected error value is the excess suspension compression projected onto the ground plane normal and should have a negative sign.
-
setSuspGeometricError
public void setSuspGeometricError(float value) the excess suspension compression to be resolved by the constraint that cannot be resolved due to the travel limit of the suspension spring.Note: The expected error value is the excess suspension compression projected onto the ground plane normal and should have a negative sign.
-
getRestitution
public float getRestitution()restitution value of the restitution model used to generate a target velocity that will resolve the geometric error. Note: A value of 0.0 means that the restitution model is not employed. -
setRestitution
public void setRestitution(float value) restitution value of the restitution model used to generate a target velocity that will resolve the geometric error. Note: A value of 0.0 means that the restitution model is not employed. -
setToDefault
public void setToDefault()
-