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()floatgetLateralSpeed(PxVehicleFrame frame) floatgetPose()floatgetVerticalSpeed(PxVehicleFrame frame) voidsetAngularVelocity(PxVec3 value) voidsetExternalForce(PxVec3 value) voidsetExternalTorque(PxVec3 value) voidsetLinearVelocity(PxVec3 value) voidsetPose(PxTransform value) voidsetPreviousAngularVelocity(PxVec3 value) voidsetPreviousLinearVelocity(PxVec3 value) 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
- Returns:
- WebIDL type:
PxTransform[Value]
-
setPose
- Parameters:
value- WebIDL type:PxTransform[Value]
-
getLinearVelocity
- Returns:
- WebIDL type:
PxVec3[Value]
-
setLinearVelocity
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getAngularVelocity
- Returns:
- WebIDL type:
PxVec3[Value]
-
setAngularVelocity
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getPreviousLinearVelocity
- Returns:
- WebIDL type:
PxVec3[Value]
-
setPreviousLinearVelocity
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getPreviousAngularVelocity
- Returns:
- WebIDL type:
PxVec3[Value]
-
setPreviousAngularVelocity
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getExternalForce
- Returns:
- WebIDL type:
PxVec3[Value]
-
setExternalForce
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getExternalTorque
- Returns:
- WebIDL type:
PxVec3[Value]
-
setExternalTorque
- Parameters:
value- WebIDL type:PxVec3[Value]
-
setToDefault
public void setToDefault() -
getVerticalSpeed
- Parameters:
frame- WebIDL type:PxVehicleFrame[Const, Ref]- Returns:
- WebIDL type: float
-
getLateralSpeed
- Parameters:
frame- WebIDL type:PxVehicleFrame[Const, Ref]- Returns:
- WebIDL type: float
-
getLongitudinalSpeed
- Parameters:
frame- WebIDL type:PxVehicleFrame[Const, Ref]- Returns:
- WebIDL type: float
-