Package physx.extensions
Class PxRigidBodyExt
- java.lang.Object
-
- physx.NativeObject
-
- physx.extensions.PxRigidBodyExt
-
public class PxRigidBodyExt extends NativeObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxRigidBodyExt()protectedPxRigidBodyExt(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos)static voidaddForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, int mode)static voidaddForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, int mode, boolean wakeup)static voidaddForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos)static voidaddForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, int mode)static voidaddForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, int mode, boolean wakeup)static voidaddLocalForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos)static voidaddLocalForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, int mode)static voidaddLocalForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos, int mode, boolean wakeup)static voidaddLocalForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos)static voidaddLocalForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, int mode)static voidaddLocalForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, int mode, boolean wakeup)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
-
-
-
-
Method Detail
-
wrapPointer
public static PxRigidBodyExt wrapPointer(long address)
-
destroy
public void destroy()
-
updateMassAndInertia
public static boolean updateMassAndInertia(PxRigidBody body, float density)
- Parameters:
body- WebIDL type:PxRigidBody[Ref]density- WebIDL type: float- Returns:
- WebIDL type: boolean
-
updateMassAndInertia
public static boolean updateMassAndInertia(PxRigidBody body, float density, PxVec3 massLocalPose)
- 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
public static boolean setMassAndUpdateInertia(PxRigidBody body, float mass)
- Parameters:
body- WebIDL type:PxRigidBody[Ref]mass- WebIDL type: float- Returns:
- WebIDL type: boolean
-
setMassAndUpdateInertia
public static boolean setMassAndUpdateInertia(PxRigidBody body, float mass, PxVec3 massLocalPose)
- 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
public static void addForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos)
- Parameters:
body- WebIDL type:PxRigidBody[Ref]force- WebIDL type:PxVec3[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]
-
addForceAtPos
public static void addForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos, int mode)
- 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, int 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
public static void addForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos)
- 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, int 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, int 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
public static void addLocalForceAtPos(PxRigidBody body, PxVec3 force, PxVec3 pos)
- 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, int 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, int 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
public static void addLocalForceAtLocalPos(PxRigidBody body, PxVec3 force, PxVec3 pos)
- 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, int 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, int 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
public static PxVec3 getVelocityAtPos(PxRigidBody body, PxVec3 pos)
- Parameters:
body- WebIDL type:PxRigidBody[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]- Returns:
- WebIDL type:
PxVec3[Value]
-
getLocalVelocityAtLocalPos
public static PxVec3 getLocalVelocityAtLocalPos(PxRigidBody body, PxVec3 pos)
- Parameters:
body- WebIDL type:PxRigidBody[Const, Ref]pos- WebIDL type:PxVec3[Const, Ref]- Returns:
- WebIDL type:
PxVec3[Value]
-
getVelocityAtOffset
public static PxVec3 getVelocityAtOffset(PxRigidBody body, PxVec3 pos)
- 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]
-
-