1#include "Game/Boss/SkeletalFishBossFunc.hpp"
2#include "Game/Util.hpp"
6 static const char* sNamePosName =
"ガード出現ポイント";
9s32 SkeletalFishBossFunc::getNearestGuardPosID(
const TVec3f &rVec) {
10 f32 closest = 100000.0;
13 for (
int i = 0; i < 16; i++) {
15 if (copyGuardPos(&pos, i)) {
16 f32 dist = PSVECDistance(rVec.toCVec(), pos.toCVec());
28bool SkeletalFishBossFunc::copyGuardPos(TVec3f *pOut, s32 idx) {
30 snprintf(buf,
sizeof(buf),
"%s%d", ::sNamePosName, idx);
31 return MR::tryFindNamePos(buf, pOut,
nullptr);