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

#include <ObjectKinoko.hh>

Description

Mushrooms which oscillate up and down. The stem does not move.

This represents the first two mushrooms on MG, even though they don't oscillate up or down.

Definition at line 44 of file ObjectKinoko.hh.

Inheritance diagram for Field::ObjectKinokoUd:

Public Member Functions

 ObjectKinokoUd (const System::MapdataGeoObj &params)
 
void calcOscillation () override
 
const char * getKclName () const override
 
void calcScale (u32) override
 
- Public Member Functions inherited from Field::ObjectKinoko
 ObjectKinoko (const System::MapdataGeoObj &params)
 
 ~ObjectKinoko () override
 @adrr{0x80807A54}
 
void calc () override
 
u32 loadFlags () const override
 @addr {0x80807DAC}
 
- Public Member Functions inherited from Field::ObjectKCL
 ObjectKCL (const System::MapdataGeoObj &params)
 
void createCollision () override
 
void calcCollisionTransform () override
 
const EGG::Vector3fgetPosition () const override
 
f32 getCollisionRadius () const override
 
void initCollision () override
 
bool checkPointPartial (const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfoPartial *info, KCLTypeMask *maskOut) override
 
bool checkPointPartialPush (const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfoPartial *info, KCLTypeMask *maskOut) override
 
bool checkPointFull (const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut) override
 
bool checkPointFullPush (const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut) override
 
bool checkSpherePartial (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfoPartial *info, KCLTypeMask *maskOut, u32 timeOffset) override
 
bool checkSpherePartialPush (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfoPartial *info, KCLTypeMask *maskOut, u32 timeOffset) override
 
bool checkSphereFull (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut, u32 timeOffset) override
 
bool checkSphereFullPush (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut, u32 timeOffset) override
 
void narrScLocal (f32 radius, const EGG::Vector3f &pos, KCLTypeMask mask, u32 timeOffset) override
 
bool checkPointCachedPartial (const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfoPartial *info, KCLTypeMask *maskOut) override
 
bool checkPointCachedPartialPush (const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfoPartial *info, KCLTypeMask *maskOut) override
 
bool checkPointCachedFull (const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut) override
 
bool checkPointCachedFullPush (const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut) override
 
bool checkSphereCachedPartial (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfoPartial *info, KCLTypeMask *maskOut, u32 timeOffset) override
 
bool checkSphereCachedPartialPush (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfoPartial *info, KCLTypeMask *maskOut, u32 timeOffset) override
 
bool checkSphereCachedFull (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut, u32 timeOffset) override
 
bool checkSphereCachedFullPush (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut, u32 timeOffset) override
 
virtual void update (u32 timeOffset)
 
virtual void setMovingObjVel (const EGG::Vector3f &v)
 
virtual const EGG::Matrix34fgetUpdatedMatrix (u32 timeOffset)
 
virtual f32 getScaleY (u32) const
 
virtual f32 colRadiusAdditionalLength () const
 
virtual bool shouldCheckColNoPush () const
 
virtual bool shouldCheckColPush () const
 
virtual bool checkCollision (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut, u32 timeOffset)
 
virtual bool checkCollisionCached (f32 radius, const EGG::Vector3f &pos, const EGG::Vector3f &prevPos, KCLTypeMask mask, CollisionInfo *info, KCLTypeMask *maskOut, u32 timeOffset)
 
- Public Member Functions inherited from Field::ObjectDrivable
 ObjectDrivable (const System::MapdataGeoObj &params)
 
void load () override
 
virtual void loadAABB (f32 radius)
 
- Public Member Functions inherited from Field::ObjectBase
 ObjectBase (const System::MapdataGeoObj &params)
 
virtual void init ()
 
virtual void calcModel ()
 
virtual const char * getResources () const
 
virtual void loadGraphics ()
 
virtual void loadAnims ()
 
virtual void loadRail ()
 
ObjectId id () const
 
void setPos (const EGG::Vector3f &pos)
 

Private Attributes

u16 m_waitFrame
 
s16 m_period
 
s16 m_waitDuration
 
s16 m_amplitude
 
f32 m_angFreq
 

Additional Inherited Members

- Protected Member Functions inherited from Field::ObjectBase
void calcTransform ()
 
void linkAnims (const std::span< const char * > &names, const std::span< Render::AnmType > types)
 
void setMatrixTangentTo (const EGG::Vector3f &up, const EGG::Vector3f &tangent)
 
- Static Protected Member Functions inherited from Field::ObjectBase
static EGG::Vector3f RotateAxisAngle (f32 angle, const EGG::Vector3f &axis, const EGG::Vector3f &v1)
 
static void SetRotTangentHorizontal (EGG::Matrix34f &mat, const EGG::Vector3f &up, const EGG::Vector3f &tangent)
 
static EGG::Vector3f Interpolate (f32 t, const EGG::Vector3f &v0, const EGG::Vector3f &v1)
 
- Protected Attributes inherited from Field::ObjectKinoko
KinokoType m_type
 
const EGG::Vector3f m_objPos
 
const EGG::Vector3f m_objRot
 
s16 m_pulseFrame
 
s16 m_restFrame
 
s16 m_pulseFalloff
 
u16 m_oscFrame
 
- Protected Attributes inherited from Field::ObjectKCL
ObjColMgrm_objColMgr
 
EGG::Vector3f m_kclMidpoint
 
f32 m_bboxHalfSideLength
 
s32 m_lastMtxUpdateFrame
 
s32 m_lastScaleUpdateFrame
 
- Protected Attributes inherited from Field::ObjectBase
Render::DrawMdlm_drawMdl
 
Abstract::g3d::ResFilem_resFile
 
ObjectId m_id
 
RailInterpolatorm_railInterpolator
 
BoxColUnitm_boxColUnit
 
u16 m_flags
 
EGG::Vector3f m_pos
 
EGG::Vector3f m_rot
 
EGG::Vector3f m_scale
 
EGG::Matrix34f m_transform
 
const System::MapdataGeoObjm_mapObj
 

Constructor & Destructor Documentation

◆ ObjectKinokoUd()

Field::ObjectKinokoUd::ObjectKinokoUd ( const System::MapdataGeoObj & params)
0x80807950

Definition at line 47 of file ObjectKinoko.cc.

Member Function Documentation

◆ calcOscillation()

void Field::ObjectKinokoUd::calcOscillation ( )
overridevirtual0x80807A54

Implements Field::ObjectKinoko.

Definition at line 60 of file ObjectKinoko.cc.

◆ calcScale()

void Field::ObjectKinokoUd::calcScale ( u32 )
inlineoverridevirtual0x80807DF8

Reimplemented from Field::ObjectKCL.

Definition at line 59 of file ObjectKinoko.hh.

◆ getKclName()

const char * Field::ObjectKinokoUd::getKclName ( ) const
inlinenodiscardoverridevirtual0x80807DFC

The base game does check for the light type, however since m_type never gets set it'll always be 0 which means it always returns "kinoko_r"

Reimplemented from Field::ObjectKinoko.

Definition at line 54 of file ObjectKinoko.hh.

Member Data Documentation

◆ m_amplitude

s16 Field::ObjectKinokoUd::m_amplitude
private

Definition at line 65 of file ObjectKinoko.hh.

◆ m_angFreq

f32 Field::ObjectKinokoUd::m_angFreq
private

Definition at line 66 of file ObjectKinoko.hh.

◆ m_period

s16 Field::ObjectKinokoUd::m_period
private

Definition at line 63 of file ObjectKinoko.hh.

◆ m_waitDuration

s16 Field::ObjectKinokoUd::m_waitDuration
private

Definition at line 64 of file ObjectKinoko.hh.

◆ m_waitFrame

u16 Field::ObjectKinokoUd::m_waitFrame
private

Definition at line 62 of file ObjectKinoko.hh.