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

Method createModel

src/Sato/ItemFlyTurtle.cpp:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void ItemFlyTurtle::createModel(JKRSolidHeap *heap, u32 p2, u32 id) {
147 mModel.createDifferedModel(heap, p2, id | 0x1000200, true);
148 mController.InitRegistration(2, &mModel);
149 for(u8 i = 0; i < 2; i++) {
150 mController.RegisterTrans(i, mAnmTrans[i], mAnmCalc[i]);
151 J3DFrameCtrl *ctrl = mController.getFrameCtrl(i);
152 ctrl->setAttribute(2);
153 }
154}
155
156void ItemFlyTurtle::createColModel(J3DModelData *) { createBoundSphere(sBoundRadius, 1.0f); }
157

Callers

nothing calls this directly

Calls 5

createDifferedModelMethod · 0.80
InitRegistrationMethod · 0.80
RegisterTransMethod · 0.80
getFrameCtrlMethod · 0.45
setAttributeMethod · 0.45

Tested by

no test coverage detected