Package physx.physics

Class PxRigidBody

    • Constructor Detail

      • PxRigidBody

        protected PxRigidBody()
      • PxRigidBody

        protected PxRigidBody​(long address)
    • Method Detail

      • wrapPointer

        public static PxRigidBody wrapPointer​(long address)
      • setCMassLocalPose

        public void setCMassLocalPose​(PxTransform pose)
        Parameters:
        pose - WebIDL type: PxTransform [Const, Ref]
      • setMass

        public void setMass​(float mass)
        Parameters:
        mass - WebIDL type: float
      • getMass

        public float getMass()
        Returns:
        WebIDL type: float
      • getInvMass

        public float getInvMass()
        Returns:
        WebIDL type: float
      • setMassSpaceInertiaTensor

        public void setMassSpaceInertiaTensor​(PxVec3 m)
        Parameters:
        m - WebIDL type: PxVec3 [Const, Ref]
      • getMassSpaceInertiaTensor

        public PxVec3 getMassSpaceInertiaTensor()
        Returns:
        WebIDL type: PxVec3 [Value]
      • getMassSpaceInvInertiaTensor

        public PxVec3 getMassSpaceInvInertiaTensor()
        Returns:
        WebIDL type: PxVec3 [Value]
      • setLinearDamping

        public void setLinearDamping​(float linDamp)
        Parameters:
        linDamp - WebIDL type: float
      • getLinearDamping

        public float getLinearDamping()
        Returns:
        WebIDL type: float
      • setAngularDamping

        public void setAngularDamping​(float angDamp)
        Parameters:
        angDamp - WebIDL type: float
      • getAngularDamping

        public float getAngularDamping()
        Returns:
        WebIDL type: float
      • getLinearVelocity

        public PxVec3 getLinearVelocity()
        Returns:
        WebIDL type: PxVec3 [Value]
      • setLinearVelocity

        public void setLinearVelocity​(PxVec3 linVel)
        Parameters:
        linVel - WebIDL type: PxVec3 [Const, Ref]
      • setLinearVelocity

        public void setLinearVelocity​(PxVec3 linVel,
                                      boolean autowake)
        Parameters:
        linVel - WebIDL type: PxVec3 [Const, Ref]
        autowake - WebIDL type: boolean
      • getAngularVelocity

        public PxVec3 getAngularVelocity()
        Returns:
        WebIDL type: PxVec3 [Value]
      • setAngularVelocity

        public void setAngularVelocity​(PxVec3 angVel)
        Parameters:
        angVel - WebIDL type: PxVec3 [Const, Ref]
      • setAngularVelocity

        public void setAngularVelocity​(PxVec3 angVel,
                                       boolean autowake)
        Parameters:
        angVel - WebIDL type: PxVec3 [Const, Ref]
        autowake - WebIDL type: boolean
      • getMaxLinearVelocity

        public float getMaxLinearVelocity()
        Returns:
        WebIDL type: float
      • setMaxLinearVelocity

        public void setMaxLinearVelocity​(float maxLinVel)
        Parameters:
        maxLinVel - WebIDL type: float
      • getMaxAngularVelocity

        public float getMaxAngularVelocity()
        Returns:
        WebIDL type: float
      • setMaxAngularVelocity

        public void setMaxAngularVelocity​(float maxAngVel)
        Parameters:
        maxAngVel - WebIDL type: float
      • addForce

        public void addForce​(PxVec3 force)
        Parameters:
        force - WebIDL type: PxVec3 [Const, Ref]
      • addForce

        public void addForce​(PxVec3 force,
                             int mode)
        Parameters:
        force - WebIDL type: PxVec3 [Const, Ref]
        mode - WebIDL type: PxForceModeEnum [enum]
      • addForce

        public void addForce​(PxVec3 force,
                             int mode,
                             boolean autowake)
        Parameters:
        force - WebIDL type: PxVec3 [Const, Ref]
        mode - WebIDL type: PxForceModeEnum [enum]
        autowake - WebIDL type: boolean
      • addTorque

        public void addTorque​(PxVec3 torque)
        Parameters:
        torque - WebIDL type: PxVec3 [Const, Ref]
      • addTorque

        public void addTorque​(PxVec3 torque,
                              int mode)
        Parameters:
        torque - WebIDL type: PxVec3 [Const, Ref]
        mode - WebIDL type: PxForceModeEnum [enum]
      • addTorque

        public void addTorque​(PxVec3 torque,
                              int mode,
                              boolean autowake)
        Parameters:
        torque - WebIDL type: PxVec3 [Const, Ref]
        mode - WebIDL type: PxForceModeEnum [enum]
        autowake - WebIDL type: boolean
      • clearForce

        public void clearForce​(int mode)
        Parameters:
        mode - WebIDL type: PxForceModeEnum [enum]
      • clearTorque

        public void clearTorque​(int mode)
        Parameters:
        mode - WebIDL type: PxForceModeEnum [enum]
      • setForceAndTorque

        public void setForceAndTorque​(PxVec3 force,
                                      PxVec3 torque)
        Parameters:
        force - WebIDL type: PxVec3 [Const, Ref]
        torque - WebIDL type: PxVec3 [Const, Ref]
      • setForceAndTorque

        public void setForceAndTorque​(PxVec3 force,
                                      PxVec3 torque,
                                      int mode)
        Parameters:
        force - WebIDL type: PxVec3 [Const, Ref]
        torque - WebIDL type: PxVec3 [Const, Ref]
        mode - WebIDL type: PxForceModeEnum [enum]
      • setRigidBodyFlag

        public void setRigidBodyFlag​(int flag,
                                     boolean value)
        Parameters:
        flag - WebIDL type: PxRigidBodyFlagEnum [enum]
        value - WebIDL type: boolean
      • setMinCCDAdvanceCoefficient

        public void setMinCCDAdvanceCoefficient​(float advanceCoefficient)
        Parameters:
        advanceCoefficient - WebIDL type: float
      • getMinCCDAdvanceCoefficient

        public float getMinCCDAdvanceCoefficient()
        Returns:
        WebIDL type: float
      • setMaxDepenetrationVelocity

        public void setMaxDepenetrationVelocity​(float biasClamp)
        Parameters:
        biasClamp - WebIDL type: float
      • getMaxDepenetrationVelocity

        public float getMaxDepenetrationVelocity()
        Returns:
        WebIDL type: float
      • setMaxContactImpulse

        public void setMaxContactImpulse​(float maxImpulse)
        Parameters:
        maxImpulse - WebIDL type: float
      • getMaxContactImpulse

        public float getMaxContactImpulse()
        Returns:
        WebIDL type: float
      • getInternalIslandNodeIndex

        public int getInternalIslandNodeIndex()
        Returns:
        WebIDL type: unsigned long