RavEngine
Loading...
Searching...
No Matches
physx::Ext::InertiaTensorComputer Class Reference

Public Member Functions

 InertiaTensorComputer (bool initTozero=true)
 
 InertiaTensorComputer (const PxMat33 &inertia, const PxVec3 &com, PxReal mass)
 
PX_INLINE void zero ()
 
PX_INLINE void setDiagonal (PxReal mass, const PxVec3 &diagonal)
 
PX_INLINE void rotate (const PxMat33 &rot)
 
void translate (const PxVec3 &t)
 
PX_INLINE void transform (const PxTransform &transform)
 
PX_INLINE void scaleDensity (PxReal densityScale)
 
PX_INLINE void add (const InertiaTensorComputer &it)
 
PX_INLINE void center ()
 
void setBox (const PxVec3 &halfWidths)
 
PX_INLINE void setBox (const PxVec3 &halfWidths, const PxTransform *pose)
 
void setSphere (PxReal radius)
 
PX_INLINE void setSphere (PxReal radius, const PxTransform *pose)
 
void setCylinder (int dir, PxReal r, PxReal l)
 
PX_INLINE void setCylinder (int dir, PxReal r, PxReal l, const PxTransform *pose)
 
void setCapsule (int dir, PxReal r, PxReal l)
 
PX_INLINE void setCapsule (int dir, PxReal r, PxReal l, const PxTransform *pose)
 
void setEllipsoid (PxReal rx, PxReal ry, PxReal rz)
 
PX_INLINE void setEllipsoid (PxReal rx, PxReal ry, PxReal rz, const PxTransform *pose)
 
PX_INLINE PxVec3 getCenterOfMass () const
 
PX_INLINE PxReal getMass () const
 
PX_INLINE PxMat33 getInertia () const
 

The documentation for this class was generated from the following file: