SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
DynamicCollisionObj.cpp
1#include "Game/Map/CollisionParts.hpp"
2#include "Game/Map/KCollision.hpp"
3#include "Game/MapObj/DynamicCollisionObj.hpp"
4
5DynamicCollisionObj::DynamicCollisionObj(const char *pName) : LiveActor(pName) {
6 _A4 = 0;
7 _9C = 0;
8 _11C = 0;
9 _A8 = 0;
10 _AC = 0;
11}
12
14 MR::initDefaultPos(this, rIter);
15 MR::connectToScene(this, 42, 8, -1, 25);
16
17 _8C = nullptr;
18}
19
20void DynamicCollisionObj::syncCollision() {
21 updateCollisionHeader();
22 updateTriangle();
23 mParts->mServer->calcFarthestVertexDistance();
24 mParts->updateBoundingSphereRange(mScale);
25}
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24
TVec3f mScale
3D vector of the actor's scale.
Definition LiveActor.hpp:97