2023-11-19 09:38:07 -05:00
|
|
|
#ifndef ORIENTABLEROI_H
|
|
|
|
#define ORIENTABLEROI_H
|
|
|
|
|
|
|
|
#include "matrix.h"
|
|
|
|
#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:
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100a4420
|
2023-11-19 09:38:07 -05:00
|
|
|
OrientableROI()
|
|
|
|
{
|
|
|
|
FILLVEC3(m_world_bounding_box.Min(), 888888.8);
|
|
|
|
FILLVEC3(m_world_bounding_box.Max(), -888888.8);
|
|
|
|
ZEROVEC3(m_world_bounding_sphere.Center());
|
|
|
|
m_world_bounding_sphere.Radius() = 0.0;
|
|
|
|
ZEROVEC3(m_world_velocity);
|
|
|
|
IDENTMAT4(m_local2world.GetMatrix());
|
|
|
|
}
|
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
virtual const Vector3& GetWorldVelocity() const override; // vtable+0x8
|
|
|
|
virtual const BoundingBox& GetWorldBoundingBox() const override; // vtable+0xc
|
|
|
|
virtual const BoundingSphere& GetWorldBoundingSphere() const override; // vtable+0x10
|
|
|
|
// FUNCTION: LEGO1 0x100a5db0
|
|
|
|
virtual void VTable0x14() { VTable0x1c(); } // vtable+0x14
|
|
|
|
virtual void UpdateWorldBoundingVolumes() = 0; // vtable+0x18
|
|
|
|
virtual void VTable0x1c(); // vtable+0x1c
|
|
|
|
virtual void SetLocalTransform(const Matrix4Impl& p_transform); // vtable+0x20
|
|
|
|
virtual void VTable0x24(const Matrix4Data& p_transform); // vtable+0x24
|
|
|
|
virtual void UpdateWorldData(const Matrix4Data& p_transform); // vtable+0x28
|
|
|
|
virtual void UpdateWorldVelocity(); // vtable+0x2c
|
2023-11-19 09:38:07 -05:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100a4630
|
|
|
|
// OrientableROI::`scalar deleting destructor'
|
2023-11-19 09:38:07 -05:00
|
|
|
|
|
|
|
protected:
|
2023-12-14 11:50:29 -05:00
|
|
|
char m_unk0xc; // 0xc
|
2023-11-19 09:38:07 -05:00
|
|
|
Matrix4Data m_local2world; // 0x10
|
|
|
|
BoundingBox m_world_bounding_box; // 0x58
|
|
|
|
BoundingSphere m_world_bounding_sphere; // 0xa8
|
|
|
|
Vector3Data m_world_velocity; // 0xc0
|
2023-12-14 11:50:29 -05:00
|
|
|
unsigned int m_unk0xd4; // 0xd4
|
|
|
|
unsigned int m_unk0xd8; // 0xd8
|
2023-11-19 09:38:07 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ORIENTABLEROI_H
|