Files

26 lines
507 B
C++
Raw Permalink Normal View History

#include "Game/MapObj/MapObjConnector.hpp"
#include "Game/Util.hpp"
#include "JSystem/JMath.hpp"
2022-01-11 00:19:19 -05:00
MapObjConnector::MapObjConnector(LiveActor *pActor) {
mHost = pActor;
_4 = 0;
_8.identity();
}
void MapObjConnector::attachToUnder() {
TVec3f up_vec;
MR::calcUpVec(&up_vec, mHost);
attach(up_vec);
}
void MapObjConnector::attachToBack() {
TVec3f front_vec;
MR::calcFrontVec(&front_vec, mHost);
attach(front_vec);
}
void MapObjConnector::connect() {
connect(mHost);
}