Rough dynamic collision setup (#24)

* Rough collider shape setup

* d_a_obj_toD3_stone_figure OK

* Cleanup

* Cleanup 2
This commit is contained in:
robojumper
2024-09-28 00:19:00 +02:00
committed by GitHub
parent 0f9ef3d33c
commit 3829ee6d48
44 changed files with 2215 additions and 390 deletions
+9
View File
@@ -2,6 +2,7 @@
#define M_ANGLE_H
#include <common.h>
#include <nw4r/math/math_triangular.h>
struct mAng {
mAng() {}
@@ -12,6 +13,14 @@ struct mAng {
}
s32 step(s16 target, s32 steps, s16 max, s16 min);
inline f32 sin() const {
return nw4r::math::SinIdx(*this);
}
inline f32 cos() const {
return nw4r::math::CosIdx(*this);
}
s16 mVal;
};
+5
View File
@@ -61,6 +61,11 @@ public:
return (Vec *)&x;
}
/// @brief Vec cast operator.
operator Vec() const {
return *(Vec *)&x;
}
operator EGG::Vector3f *() {
return (EGG::Vector3f *)&x;
}