Class PxRigidBodyExt

java.lang.Object
physx.NativeObject
physx.extensions.PxRigidBodyExt

public class PxRigidBodyExt extends NativeObject
  • 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

      public static PxRigidBodyExt wrapPointer(long address)
    • arrayGet

      public static PxRigidBodyExt arrayGet(long baseAddress, int index)
    • 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: float
      massLocalPose - 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: float
      massLocalPose - WebIDL type: PxVec3
      includeNonSimShapes - 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: float
      massLocalPose - 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: float
      massLocalPose - WebIDL type: PxVec3
      includeNonSimShapes - 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, 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]
    • 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

      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, 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

      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, 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

      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, 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

      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: float
      invInertiaScale - WebIDL type: float
      deltaLinearVelocity - 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: float
      invInertiaScale - WebIDL type: float
      linearImpulse - WebIDL type: PxVec3 [Ref]
      angularImpulse - WebIDL type: PxVec3 [Ref]