java.lang.Object
physx.NativeObject
physx.vehicle2.PxVehicleRigidBodyState
-
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 PxVehicleRigidBodyStatearrayGet(long baseAddress, int index) voiddestroy()the body's angular velocity (in world space)external force (in world space) affecting the rigid body (usually excluding gravitational force)external torque (in world space) affecting the rigid bodyfloatgetLateralSpeed(PxVehicleFrame frame) the body's linear velocity (in world space)floatCompute the longitudinal speed of the rigid body transformed to the world frame.getPose()the body's pose (in world space)the previous angular velocity of the body (in world space)the previous linear velocity of the body (in world space)floatgetVerticalSpeed(PxVehicleFrame frame) Compute the vertical speed of the rigid body transformed to the world frame.voidsetAngularVelocity(PxVec3 value) the body's angular velocity (in world space)voidsetExternalForce(PxVec3 value) external force (in world space) affecting the rigid body (usually excluding gravitational force)voidsetExternalTorque(PxVec3 value) external torque (in world space) affecting the rigid bodyvoidsetLinearVelocity(PxVec3 value) the body's linear velocity (in world space)voidsetPose(PxTransform value) the body's pose (in world space)voidsetPreviousAngularVelocity(PxVec3 value) the previous angular velocity of the body (in world space)voidsetPreviousLinearVelocity(PxVec3 value) the previous linear velocity of the body (in world space)voidstatic PxVehicleRigidBodyStatewrapPointer(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
-
PxVehicleRigidBodyState
protected PxVehicleRigidBodyState(long address) -
PxVehicleRigidBodyState
public PxVehicleRigidBodyState()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getPose
the body's pose (in world space) -
setPose
the body's pose (in world space) -
getLinearVelocity
the body's linear velocity (in world space) -
setLinearVelocity
the body's linear velocity (in world space) -
getAngularVelocity
the body's angular velocity (in world space) -
setAngularVelocity
the body's angular velocity (in world space) -
getPreviousLinearVelocity
the previous linear velocity of the body (in world space) -
setPreviousLinearVelocity
the previous linear velocity of the body (in world space) -
getPreviousAngularVelocity
the previous angular velocity of the body (in world space) -
setPreviousAngularVelocity
the previous angular velocity of the body (in world space) -
getExternalForce
external force (in world space) affecting the rigid body (usually excluding gravitational force) -
setExternalForce
external force (in world space) affecting the rigid body (usually excluding gravitational force) -
getExternalTorque
external torque (in world space) affecting the rigid body -
setExternalTorque
external torque (in world space) affecting the rigid body -
setToDefault
public void setToDefault() -
getVerticalSpeed
Compute the vertical speed of the rigid body transformed to the world frame.- Parameters:
frame- describes the axes of the vehicle
-
getLateralSpeed
- Parameters:
frame- describes the axes of the vehicle Compute the lateral speed of the rigid body transformed to the world frame.
-
getLongitudinalSpeed
Compute the longitudinal speed of the rigid body transformed to the world frame.- Parameters:
frame- describes the axes of the vehicle
-