mirror of
https://github.com/zeldaret/ss
synced 2026-06-09 04:29:58 -04:00
8a3710824b
* c_cc_d soooo close * d_cc_shape_colliders -> d_cc_d * ported over changes from #43 * Oops, didnt save * use better collision functions in bombf * bombf fixes * bombf actorPostCreate matching * fix * small fix for cCcD_UnkAttr Set function * more cleanup(?) for c_cc_d * d_cc_mass_s OK * Initial d_cc_s setup * some easy funcs --------- Co-authored-by: robojumper <robojumper@gmail.com>
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
#ifndef C_M3D_G_UNK_H
|
|
#define C_M3D_G_UNK_H
|
|
|
|
#include "common.h"
|
|
#include "d/col/c/c_m3d.h"
|
|
#include "d/col/c/c_m3d_g_lin.h"
|
|
#include "m/m_mtx.h"
|
|
#include "m/m_vec.h"
|
|
|
|
struct cM3dGCps;
|
|
struct cM3dGCyl;
|
|
struct cM3dGSph;
|
|
|
|
class cM3dGUnk {
|
|
public:
|
|
/* 0x00 */ mMtx_c mMtx;
|
|
/* 0x30 */ mMtx_c mInvMtx;
|
|
/* 0x60 */ mVec3_c mMin;
|
|
/* 0x6C */ mVec3_c mMax;
|
|
/* 0x78 */ cM3dGLin mLin;
|
|
/* 0x90 */ mVec3_c mField_0x90;
|
|
/* 0x9C */ mVec3_c mField_0x9C;
|
|
/* 0xA8 */ mVec3_c mField_0xA8;
|
|
/* 0xB4 */ u32 mField_0xB4;
|
|
/* 0xB8 */ mVec3_c mVirtCenter;
|
|
/* 0xC4 */ f32 mField_0xC4;
|
|
|
|
cM3dGUnk();
|
|
|
|
/* vt at 0xC8*/
|
|
virtual ~cM3dGUnk() {}
|
|
|
|
void Set(const mVec3_c &, const mVec3_c &);
|
|
void Update();
|
|
void GetStartEnd(mVec3_c &, mVec3_c &);
|
|
|
|
bool Cross(cM3dGCps &, mVec3_c *);
|
|
bool Cross(cM3dGTri &, mVec3_c *);
|
|
bool Cross(cM3dGUnk &, mVec3_c *);
|
|
bool Cross(cM3dGCyl &, mVec3_c *);
|
|
bool Cross(cM3dGCyl &, f32 *);
|
|
bool Cross(cM3dGSph &, mVec3_c *);
|
|
bool Cross(cM3dGSph &, f32 *);
|
|
|
|
void Set(const mMtx_c &);
|
|
void Set(const mVec3_c &, const mAng &);
|
|
bool Cross(const mVec3_c &);
|
|
void Clamp(const mVec3_c &, mVec3_c &);
|
|
void fn_80338f30(f32, f32);
|
|
};
|
|
|
|
#endif
|