Class PxRigidBodyExt

    • Constructor Detail

      • PxRigidBodyExt

        protected PxRigidBodyExt()
      • PxRigidBodyExt

        protected PxRigidBodyExt​(long address)
    • 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: 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,
                                         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,
                                              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,
                                              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,
                                                   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
      • 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]