#include <CollisionGroup.hh>
Represents a hitbox for the kart body or a wheel.
A hitbox's position information is directly used in the KCL collision check functions.
Definition at line 48 of file CollisionGroup.hh.
Public Member Functions | |
void | calc (f32 totalScale, f32 sinkDepth, const EGG::Vector3f &scale, const EGG::Quatf &rot, const EGG::Vector3f &pos) |
Calculates the position of a given hitbox, both relative to the player and world. | |
Setters | |
void | reset () |
void | setRadius (f32 radius) |
void | setBspHitbox (const BSP::Hitbox *hitbox, bool owns=false) |
void | setWorldPos (const EGG::Vector3f &pos) |
void | setLastPos (const EGG::Vector3f &pos) |
void | setLastPos (const EGG::Vector3f &scale, const EGG::Matrix34f &pose) |
Getters | |
const BSP::Hitbox * | bspHitbox () const |
const EGG::Vector3f & | worldPos () const |
const EGG::Vector3f & | lastPos () const |
const EGG::Vector3f & | relPos () const |
f32 | radius () const |
Private Attributes | |
const BSP::Hitbox * | m_bspHitbox |
f32 | m_radius |
EGG::Vector3f | m_worldPos |
EGG::Vector3f | m_lastPos |
EGG::Vector3f | m_relPos |
bool | m_ownsBSP |
|
0x805B7F48 |
Definition at line 32 of file CollisionGroup.cc.
|
0x805B8480 |
Definition at line 35 of file CollisionGroup.cc.
|
inlinenodiscard |
Definition at line 80 of file CollisionGroup.hh.
|
0x805B7FBC |
Calculates the position of a given hitbox, both relative to the player and world.
Definition at line 43 of file CollisionGroup.cc.
|
inlinenodiscard |
Definition at line 88 of file CollisionGroup.hh.
|
inlinenodiscard |
Definition at line 96 of file CollisionGroup.hh.
|
inlinenodiscard |
Definition at line 92 of file CollisionGroup.hh.
|
0x805B7F84 |
Definition at line 58 of file CollisionGroup.cc.
|
inline |
Definition at line 63 of file CollisionGroup.hh.
|
inline |
Definition at line 72 of file CollisionGroup.hh.
|
0x805B80A8 |
Definition at line 65 of file CollisionGroup.cc.
|
inline |
Definition at line 59 of file CollisionGroup.hh.
|
inline |
Definition at line 68 of file CollisionGroup.hh.
|
inlinenodiscard |
Definition at line 84 of file CollisionGroup.hh.
|
private |
Definition at line 102 of file CollisionGroup.hh.
|
private |
Definition at line 105 of file CollisionGroup.hh.
|
private |
Definition at line 108 of file CollisionGroup.hh.
|
private |
Definition at line 103 of file CollisionGroup.hh.
|
private |
Definition at line 106 of file CollisionGroup.hh.
|
private |
Definition at line 104 of file CollisionGroup.hh.