MCPcopy Create free account
hub / github.com/doldecomp/mkdd / IsHitObject

Method IsHitObject

src/Sato/GeographyObj.cpp:239–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239bool GeographyObj::IsHitObject(const JGeometry::TVec3f &hitCheckPos, ObjColBase *collider)
240{
241 bool isHit = false;
242 ObjColBase::CKind colliderKind = collider->getKind();
243 switch (collider->getKind()) {
244 case ObjColBase::SPHERE:
245 isHit = (*mBounds)->IsHitSphere(mPos, hitCheckPos, collider->getRadius());
246 break;
247 case ObjColBase::CYLINDER:
248 isHit = (*mBounds)->IsHitCylinder(mPos, hitCheckPos, *(ObjColCylinder *)collider);
249 break;
250 default:
251 break;
252 }
253 return isHit;
254}
255
256void GeographyObj::setIsHitKartFlg(int kart_index)
257{

Callers 2

calcMethod · 0.80
calcIsHitItemMethod · 0.80

Calls 4

IsHitSphereMethod · 0.80
IsHitCylinderMethod · 0.80
getKindMethod · 0.45
getRadiusMethod · 0.45

Tested by

no test coverage detected