#include <ObjectCollisionConvexHull.hh>
Smallest convex shape that encloses a given set of points.
Definition at line 8 of file ObjectCollisionConvexHull.hh.
|
| ObjectCollisionConvexHull (size_t count) |
| Allocates space for a convex hull with the provided point count. This overload can only be called via inheritance or delegating constructors.
|
|
◆ ObjectCollisionConvexHull() [1/2]
Field::ObjectCollisionConvexHull::ObjectCollisionConvexHull |
( |
const std::span< const EGG::Vector3f > & | points | ) |
|
|
0x808364E0 |
Creates a convex hull with the provided points.
The base game has the possibility to only provide a count to allocate space. To account for this, we split the base game's constructor into two overloads. This overload enables conversion from std::array into a span, which initializes the points.
Definition at line 10 of file ObjectCollisionConvexHull.cc.
◆ ~ObjectCollisionConvexHull()
Field::ObjectCollisionConvexHull::~ObjectCollisionConvexHull |
( |
| ) |
|
|
override0x808365A8 |
◆ ObjectCollisionConvexHull() [2/2]
Field::ObjectCollisionConvexHull::ObjectCollisionConvexHull |
( |
size_t | count | ) |
|
|
protected0x808364E0 |
Allocates space for a convex hull with the provided point count. This overload can only be called via inheritance or delegating constructors.
The base game has the possibility to only provide a count to allocate space. To account for this, we split the base game's constructor into two overloads. This overload enables avoiding immediate point initialization, which is useful for inheritance.
Definition at line 69 of file ObjectCollisionConvexHull.cc.
◆ getBoundingRadius()
f32 Field::ObjectCollisionConvexHull::getBoundingRadius |
( |
| ) |
const |
|
inlineoverridevirtual0x807F957C |
◆ getSupport()
|
overridevirtual0x80836628 |
◆ setBoundingRadius()
virtual void Field::ObjectCollisionConvexHull::setBoundingRadius |
( |
f32 | val | ) |
|
|
inlinevirtual0x8080C414 |
◆ transform()
|
overridevirtual0x808367C4 |
◆ m_points
std::span<EGG::Vector3f> Field::ObjectCollisionConvexHull::m_points |
|
private |
◆ m_worldPoints
std::span<EGG::Vector3f> Field::ObjectCollisionConvexHull::m_worldPoints |
|
private |
◆ m_worldRadius
f32 Field::ObjectCollisionConvexHull::m_worldRadius |
|
private |