mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
26 lines
507 B
C++
26 lines
507 B
C++
#include "Game/MapObj/MapObjConnector.hpp"
|
|
#include "Game/Util.hpp"
|
|
#include "JSystem/JMath.hpp"
|
|
|
|
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);
|
|
}
|