A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Field::ObjectCollisionSphere Class Reference

Description

Definition at line 7 of file ObjectCollisionSphere.hh.

Inheritance diagram for Field::ObjectCollisionSphere:

Public Member Functions

 ObjectCollisionSphere (f32 radius, const EGG::Vector3f &center)
 
void transform (const EGG::Matrix34f &mat, const EGG::Vector3f &scale, const EGG::Vector3f &speed) override
 
const EGG::Vector3fgetSupport (const EGG::Vector3f &v) const override
 
f32 getBoundingRadius () const override
 
- Public Member Functions inherited from Field::ObjectCollisionBase
bool check (ObjectCollisionBase &rhs, EGG::Vector3f &distance)
 

Private Attributes

f32 m_radius
 
EGG::Vector3f m_pos
 
f32 m_scaledRadius
 
EGG::Vector3f m_scaledPos
 
EGG::Vector3f m_worldPos
 
EGG::Vector3f m_center
 

Additional Inherited Members

- Protected Attributes inherited from Field::ObjectCollisionBase
EGG::Vector3f m_translation
 

Constructor & Destructor Documentation

◆ ObjectCollisionSphere()

Field::ObjectCollisionSphere::ObjectCollisionSphere ( f32 radius,
const EGG::Vector3f & center )
0x808368D0

Definition at line 6 of file ObjectCollisionSphere.cc.

Member Function Documentation

◆ getBoundingRadius()

f32 Field::ObjectCollisionSphere::getBoundingRadius ( ) const
inlineoverridevirtual0x80836B54

Implements Field::ObjectCollisionBase.

Definition at line 17 of file ObjectCollisionSphere.hh.

◆ getSupport()

const EGG::Vector3f & Field::ObjectCollisionSphere::getSupport ( const EGG::Vector3f & v) const
overridevirtual0x80836920

Implements Field::ObjectCollisionBase.

Definition at line 28 of file ObjectCollisionSphere.cc.

◆ transform()

void Field::ObjectCollisionSphere::transform ( const EGG::Matrix34f & mat,
const EGG::Vector3f & scale,
const EGG::Vector3f & speed )
overridevirtual0x80836A50

Implements Field::ObjectCollisionBase.

Definition at line 14 of file ObjectCollisionSphere.cc.

Member Data Documentation

◆ m_center

EGG::Vector3f Field::ObjectCollisionSphere::m_center
private

Definition at line 27 of file ObjectCollisionSphere.hh.

◆ m_pos

EGG::Vector3f Field::ObjectCollisionSphere::m_pos
private

Definition at line 23 of file ObjectCollisionSphere.hh.

◆ m_radius

f32 Field::ObjectCollisionSphere::m_radius
private

Definition at line 22 of file ObjectCollisionSphere.hh.

◆ m_scaledPos

EGG::Vector3f Field::ObjectCollisionSphere::m_scaledPos
private

Definition at line 25 of file ObjectCollisionSphere.hh.

◆ m_scaledRadius

f32 Field::ObjectCollisionSphere::m_scaledRadius
private

Definition at line 24 of file ObjectCollisionSphere.hh.

◆ m_worldPos

EGG::Vector3f Field::ObjectCollisionSphere::m_worldPos
private

Definition at line 26 of file ObjectCollisionSphere.hh.