| 219 | } |
| 220 | |
| 221 | bool GeographyObj::IsHitKart(const JGeometry::TVec3f &spherePos, f32 sphereRadius, JGeometry::TVec3f *posAdjust) |
| 222 | { |
| 223 | bool isHit = false; |
| 224 | ObjColBase **pBounds = mBounds; |
| 225 | for (u8 i = 0; i < mBoundsNum; i++, pBounds++) { |
| 226 | if ((*pBounds)->IsHitSphere(getBoundsGlPos(i), spherePos, sphereRadius)) { |
| 227 | if (posAdjust && (_58 != 2)) { |
| 228 | JGeometry::TVec3f collPos = (*pBounds)->getPos(); |
| 229 | f32 distance = (*pBounds)->getBoundDepth(); |
| 230 | collPos *= distance; |
| 231 | *posAdjust += collPos; |
| 232 | } |
| 233 | isHit = true; |
| 234 | } |
| 235 | } |
| 236 | return isHit; |
| 237 | } |
| 238 | |
| 239 | bool GeographyObj::IsHitObject(const JGeometry::TVec3f &hitCheckPos, ObjColBase *collider) |
| 240 | { |
nothing calls this directly
no test coverage detected