mirror of
https://github.com/zeldaret/ss
synced 2026-07-10 14:33:47 -04:00
Rough dynamic collision setup (#24)
* Rough collider shape setup * d_a_obj_toD3_stone_figure OK * Cleanup * Cleanup 2
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user