java.lang.Object
physx.NativeObject
physx.extensions.PxRigidBodyExt
-
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 voidaddForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos) static voidaddForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode) static voidaddForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode, boolean wakeup) static voidaddForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos) static voidaddForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode) static voidaddForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode, boolean wakeup) static voidaddLocalForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos) static voidaddLocalForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode) static voidaddLocalForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode, boolean wakeup) static voidaddLocalForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos) static voidaddLocalForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode) static voidaddLocalForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode, boolean wakeup) static PxRigidBodyExtarrayGet(long baseAddress, int index) static voidcomputeLinearAngularImpulse(PxRigidBody body, PxTransform globalPose, PxVec3 point, PxVec3 impulse, float invMassScale, float invInertiaScale, PxVec3 linearImpulse, PxVec3 angularImpulse) static voidcomputeVelocityDeltaFromImpulse(PxRigidBody body, PxTransform globalPose, PxVec3 point, PxVec3 impulse, float invMassScale, float invInertiaScale, PxVec3 deltaLinearVelocity, PxVec3 deltaAngularVelocity) static voidcomputeVelocityDeltaFromImpulse(PxRigidBody body, PxVec3 impulsiveForce, PxVec3 impulsiveTorque, PxVec3 deltaLinearVelocity, PxVec3 deltaAngularVelocity) voiddestroy()static PxVec3getLocalVelocityAtLocalPos(PxRigidBody body, PxVec3 pos) static PxVec3getVelocityAtOffset(PxRigidBody body, PxVec3 pos) static PxVec3getVelocityAtPos(PxRigidBody body, PxVec3 pos) static booleansetMassAndUpdateInertia(PxRigidBody body, float mass) static booleansetMassAndUpdateInertia(PxRigidBody body, float mass, PxVec3 massLocalPose) static booleansetMassAndUpdateInertia(PxRigidBody body, float mass, PxVec3 massLocalPose, boolean includeNonSimShapes) static booleanupdateMassAndInertia(PxRigidBody body, float density) static booleanupdateMassAndInertia(PxRigidBody body, float density, PxVec3 massLocalPose) static booleanupdateMassAndInertia(PxRigidBody body, float density, PxVec3 massLocalPose, boolean includeNonSimShapes) static PxRigidBodyExtwrapPointer(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
-
PxRigidBodyExt
protected PxRigidBodyExt() -
PxRigidBodyExt
protected PxRigidBodyExt(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
updateMassAndInertia
- Parameters:
body- WebIDL type:PxRigidBody[Ref]density- WebIDL type: float- Returns:
- WebIDL type: boolean
-
updateMassAndInertia
- Parameters:
body- WebIDL type:PxRigidBody[Ref]density- WebIDL type: floatmassLocalPose- WebIDL type:PxVec3- Returns:
- WebIDL type: boolean
-
updateMassAndInertia
public static boolean updateMassAndInertia(PxRigidBody body, float density, PxVec3 massLocalPose, boolean includeNonSimShapes) - Parameters:
body- WebIDL type:PxRigidBody[Ref]density- WebIDL type: floatmassLocalPose- WebIDL type:PxVec3includeNonSimShapes- WebIDL type: boolean- Returns:
- WebIDL type: boolean
-
setMassAndUpdateInertia
- Parameters:
body- WebIDL type:PxRigidBody[Ref]mass- WebIDL type: float- Returns:
- WebIDL type: boolean
-
setMassAndUpdateInertia
- Parameters:
body- WebIDL type:PxRigidBody[Ref]mass- WebIDL type: floatmassLocalPose- WebIDL type:PxVec3- Returns:
- WebIDL type: boolean
-
setMassAndUpdateInertia
public static boolean setMassAndUpdateInertia(PxRigidBody body, float mass, PxVec3 massLocalPose, boolean includeNonSimShapes) - Parameters:
body- WebIDL type:PxRigidBody[Ref]mass- WebIDL type: floatmassLocalPose- WebIDL type:PxVec3includeNonSimShapes- WebIDL type: boolean- Returns:
- WebIDL type: boolean
-
addForceAtPos
- Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]
-
addForceAtPos
- Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
addForceAtPos
public static void addForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode, boolean wakeup) - Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]wakeup- WebIDL type: boolean
-
addForceAtLocalPos
- Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]
-
addForceAtLocalPos
public static void addForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode) - Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
addForceAtLocalPos
public static void addForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode, boolean wakeup) - Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]wakeup- WebIDL type: boolean
-
addLocalForceAtPos
- Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]
-
addLocalForceAtPos
public static void addLocalForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode) - Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
addLocalForceAtPos
public static void addLocalForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode, boolean wakeup) - Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]wakeup- WebIDL type: boolean
-
addLocalForceAtLocalPos
- Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]
-
addLocalForceAtLocalPos
public static void addLocalForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode) - Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
addLocalForceAtLocalPos
public static void addLocalForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, PxForceModeEnum mode, boolean wakeup) - Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]wakeup- WebIDL type: boolean
-
getVelocityAtPos
- Parameters:
body- WebIDL type:PxRigidBody[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]- Returns:
- WebIDL type:
PxVec3[Value]
-
getLocalVelocityAtLocalPos
- Parameters:
body- WebIDL type:PxRigidBody[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]- Returns:
- WebIDL type:
PxVec3[Value]
-
getVelocityAtOffset
- Parameters:
body- WebIDL type:PxRigidBody[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]- Returns:
- WebIDL type:
PxVec3[Value]
-
computeVelocityDeltaFromImpulse
public static void computeVelocityDeltaFromImpulse(PxRigidBody body, PxVec3 impulsiveForce, PxVec3 impulsiveTorque, PxVec3 deltaLinearVelocity, PxVec3 deltaAngularVelocity) - Parameters:
body- WebIDL type:PxRigidBody[Const, Ref]impulsiveForce- WebIDL type:PxVec3[Const, Ref]impulsiveTorque- WebIDL type:PxVec3[Const, Ref]deltaLinearVelocity- WebIDL type:PxVec3[Ref]deltaAngularVelocity- WebIDL type:PxVec3[Ref]
-
computeVelocityDeltaFromImpulse
public static void computeVelocityDeltaFromImpulse(PxRigidBody body, PxTransform globalPose, PxVec3 point, PxVec3 impulse, float invMassScale, float invInertiaScale, PxVec3 deltaLinearVelocity, PxVec3 deltaAngularVelocity) - Parameters:
body- WebIDL type:PxRigidBody[Const, Ref]globalPose- WebIDL type:PxTransform[Const, Ref]point- WebIDL type:PxVec3[Const, Ref]impulse- WebIDL type:PxVec3[Const, Ref]invMassScale- WebIDL type: floatinvInertiaScale- WebIDL type: floatdeltaLinearVelocity- WebIDL type:PxVec3[Ref]deltaAngularVelocity- WebIDL type:PxVec3[Ref]
-
computeLinearAngularImpulse
public static void computeLinearAngularImpulse(PxRigidBody body, PxTransform globalPose, PxVec3 point, PxVec3 impulse, float invMassScale, float invInertiaScale, PxVec3 linearImpulse, PxVec3 angularImpulse) - Parameters:
body- WebIDL type:PxRigidBody[Const, Ref]globalPose- WebIDL type:PxTransform[Const, Ref]point- WebIDL type:PxVec3[Const, Ref]impulse- WebIDL type:PxVec3[Const, Ref]invMassScale- WebIDL type: floatinvInertiaScale- WebIDL type: floatlinearImpulse- WebIDL type:PxVec3[Ref]angularImpulse- WebIDL type:PxVec3[Ref]
-