closer, just executeState_Wait left

This commit is contained in:
elijah-thomas774
2024-06-14 20:00:40 -04:00
parent bc799932f2
commit a3ebf1e133
4 changed files with 42 additions and 29 deletions
+14 -5
View File
@@ -93,13 +93,13 @@ protected:
public:
/* 8002c3b0 */ dAcBase_c();
void setPostion(mVec3_c &r) {
void setPostion(const mVec3_c &r) {
position = r;
}
void SetScale(mVec3_c &r) {
void SetScale(const mVec3_c &r) {
scale = r;
}
void SetRotation(mAng3_c &r) {
void SetRotation(const mAng3_c &r) {
rotation = r;
}
@@ -113,8 +113,17 @@ public:
void copyRotation() {
rot_copy = rotation;
}
mVec3_c GetPostionDifference(const dAcBase_c *other) {
return position - other->position;
mVec3_c GetPostionDifference(const dAcBase_c &other) {
return position - other.position;
}
f32 getSquareDistanceTo(const mVec3_c &point) {
mVec3_c diff = position - point;
return diff.x * diff.x + diff.z * diff.z;
}
bool IsOutOfRange(const mVec3_c &point, f32 radius) {
return getSquareDistanceTo(point) > radius;
}
public:
+2 -1
View File
@@ -2,8 +2,9 @@
#define D_A_OBJ_BASE_H
#include "d/a/d_a_base.h"
#include "m/types_m.h"
#include "m/m_mtx.h"
#include "m/types_m.h"
// Ghidra: ActorObjectBase
// size: 0x330