2023-11-19 09:38:07 -05:00
|
|
|
#ifndef ORIENTABLEROI_H
|
|
|
|
#define ORIENTABLEROI_H
|
|
|
|
|
2024-01-12 19:34:38 -05:00
|
|
|
#include "decomp.h"
|
|
|
|
#include "mxgeometry/mxmatrix.h"
|
2023-11-19 09:38:07 -05:00
|
|
|
#include "roi.h"
|
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// VTABLE: LEGO1 0x100dbc08
|
|
|
|
// SIZE 0xdc
|
2023-11-19 09:38:07 -05:00
|
|
|
class OrientableROI : public ROI {
|
|
|
|
public:
|
2024-01-12 19:34:38 -05:00
|
|
|
enum {
|
|
|
|
Flag_Bit1 = 0x01,
|
|
|
|
Flag_Bit2 = 0x02
|
|
|
|
};
|
|
|
|
|
|
|
|
OrientableROI();
|
|
|
|
|
|
|
|
virtual const float* GetWorldVelocity() const override; // vtable+0x8
|
2023-12-14 11:50:29 -05:00
|
|
|
virtual const BoundingBox& GetWorldBoundingBox() const override; // vtable+0xc
|
|
|
|
virtual const BoundingSphere& GetWorldBoundingSphere() const override; // vtable+0x10
|
|
|
|
// FUNCTION: LEGO1 0x100a5db0
|
2024-01-12 19:34:38 -05:00
|
|
|
virtual void VTable0x14() { VTable0x1c(); } // vtable+0x14
|
|
|
|
virtual void UpdateWorldBoundingVolumes() = 0; // vtable+0x18
|
|
|
|
virtual void VTable0x1c(); // vtable+0x1c
|
|
|
|
virtual void SetLocalTransform(const Matrix4& p_transform); // vtable+0x20
|
|
|
|
virtual void VTable0x24(const MxMatrix& p_transform); // vtable+0x24
|
|
|
|
virtual void UpdateWorldData(const MxMatrix& p_transform); // vtable+0x28
|
|
|
|
virtual void UpdateWorldVelocity(); // vtable+0x2c
|
|
|
|
|
2024-01-16 14:33:03 -05:00
|
|
|
const MxMatrix& GetLocal2World() const { return m_local2world; }
|
2024-01-12 19:34:38 -05:00
|
|
|
const float* GetWorldPosition() const { return m_local2world[3]; }
|
|
|
|
const float* GetWorldDirection() const { return m_local2world[2]; }
|
|
|
|
const float* GetWorldUp() const { return m_local2world[1]; }
|
2023-11-19 09:38:07 -05:00
|
|
|
|
|
|
|
protected:
|
2024-01-12 19:34:38 -05:00
|
|
|
MxMatrix m_local2world; // 0x10
|
|
|
|
BoundingBox m_world_bounding_box; // 0x58
|
|
|
|
|
|
|
|
// Unclear whether the following vectors are:
|
|
|
|
// 1) Part of m_world_bounding_box;
|
|
|
|
// 2) A second BoundingBox;
|
|
|
|
// 3) Standalone vectors
|
|
|
|
|
|
|
|
Mx3DPointFloat m_unk0x80; // 0x80
|
|
|
|
Mx3DPointFloat m_unk0x94; // 0x94
|
2023-11-19 09:38:07 -05:00
|
|
|
BoundingSphere m_world_bounding_sphere; // 0xa8
|
2024-01-12 19:34:38 -05:00
|
|
|
Mx3DPointFloat m_world_velocity; // 0xc0
|
|
|
|
undefined4 m_unk0xd4; // 0xd4
|
|
|
|
undefined4 m_unk0xd8; // 0xd8
|
2023-11-19 09:38:07 -05:00
|
|
|
};
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100a4630
|
|
|
|
// OrientableROI::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x100aa2f0
|
|
|
|
// OrientableROI::~OrientableROI
|
|
|
|
|
2023-11-19 09:38:07 -05:00
|
|
|
#endif // ORIENTABLEROI_H
|