java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleSuspensionForce
The force and torque for a single suspension to apply to the vehicle's rigid body.
-
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 PxVehicleSuspensionForcearrayGet(long baseAddress, int index) voiddestroy()getForce()The force to apply to the rigid body.floatThe component of force that lies along the normal of the plane under the wheel.The torque to apply to the rigid body.voidThe force to apply to the rigid body.voidsetNormalForce(float value) The component of force that lies along the normal of the plane under the wheel.voidvoidThe torque to apply to the rigid body.static PxVehicleSuspensionForcewrapPointer(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
-
PxVehicleSuspensionForce
protected PxVehicleSuspensionForce(long address) -
PxVehicleSuspensionForce
public PxVehicleSuspensionForce()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getForce
The force to apply to the rigid body. Note: force is expressed in the world frame.Unit: mass * length / (time^2)
-
setForce
The force to apply to the rigid body. Note: force is expressed in the world frame.Unit: mass * length / (time^2)
-
getTorque
The torque to apply to the rigid body. Note: torque is expressed in the world frame.Unit: mass * (length^2) / (time^2)
-
setTorque
The torque to apply to the rigid body. Note: torque is expressed in the world frame.Unit: mass * (length^2) / (time^2)
-
getNormalForce
public float getNormalForce()The component of force that lies along the normal of the plane under the wheel. Note: normalForce may be used by the tire model as the tire load.Unit: mass * length / (time^2)
-
setNormalForce
public void setNormalForce(float value) The component of force that lies along the normal of the plane under the wheel. Note: normalForce may be used by the tire model as the tire load.Unit: mass * length / (time^2)
-
setToDefault
public void setToDefault()
-