-------------------------------------------------------------------------- Returns true if shape is intersecting a water surface (roughly) --------------------------------------------------------------------------
| 1728 | // Returns true if shape is intersecting a water surface (roughly) |
| 1729 | //-------------------------------------------------------------------------- |
| 1730 | bool RigidShape::collidingWithWater( Point3F &waterHeight ) |
| 1731 | { |
| 1732 | Point3F curPos = getPosition(); |
| 1733 | |
| 1734 | F32 height = mFabs( mObjBox.maxExtents.z - mObjBox.minExtents.z ); |
| 1735 | |
| 1736 | RayInfo rInfo; |
| 1737 | if( gClientContainer.castRay( curPos + Point3F(0.0, 0.0, height), curPos, WaterObjectType, &rInfo) ) |
| 1738 | { |
| 1739 | waterHeight = rInfo.point; |
| 1740 | return true; |
| 1741 | } |
| 1742 | |
| 1743 | return false; |
| 1744 | } |
| 1745 | |
| 1746 | void RigidShape::setEnergyLevel(F32 energy) |
| 1747 | { |
nothing calls this directly
no test coverage detected