mirror of
https://github.com/zeldaret/ss
synced 2026-07-08 05:50:30 -04:00
closer, just executeState_Wait left
This commit is contained in:
+14
-5
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user