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

Method createShadowModel

src/Sato/GeographyObj.cpp:439–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437void GeographyObj::createColModel(J3DModelData *) {}
438
439void GeographyObj::createShadowModel(JKRSolidHeap *heap, u32 param_2)
440{
441 if (!mShadowMdl) { return; }
442
443 mShadowMdl->createModel(heap, param_2, 0x60000);
444 CrsGround ground(RaceMgr::sRaceManager->getCourse());
445 ground.search(this, mPos, mPos);
446
447 Mtx assignedModelMatrix;
448 getAssignedModelMatrix(assignedModelMatrix);
449
450 assignedModelMatrix[1][3] = ground.getHeight();
451
452 mShadowMdl->setBaseTRMtx(assignedModelMatrix);
453 mShadowMdl->getModel()->setBaseScale(mScale);
454}
455
456stRandom *GeographyObj::getGeoRnd()
457{

Callers

nothing calls this directly

Calls 7

getCourseMethod · 0.80
createModelMethod · 0.45
searchMethod · 0.45
getHeightMethod · 0.45
setBaseTRMtxMethod · 0.45
setBaseScaleMethod · 0.45
getModelMethod · 0.45

Tested by

no test coverage detected