| 299 | } |
| 300 | |
| 301 | static PX_FORCE_INLINE void projectBox(PxReal& min, PxReal& max, const PxVec3& axis, const Box& box) |
| 302 | { |
| 303 | const PxReal boxCen = box.center.dot(axis); |
| 304 | const PxReal boxExt = |
| 305 | PxAbs(box.rot.column0.dot(axis)) * box.extents.x |
| 306 | + PxAbs(box.rot.column1.dot(axis)) * box.extents.y |
| 307 | + PxAbs(box.rot.column2.dot(axis)) * box.extents.z; |
| 308 | |
| 309 | min = boxCen - boxExt; |
| 310 | max = boxCen + boxExt; |
| 311 | } |
| 312 | |
| 313 | static bool PxcTestAxis(const PxVec3& axis, const Segment& segment, PxReal radius, const Box& box, PxReal& depth) |
| 314 | { |
no test coverage detected