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

#include <JugemUnit.hh>

Description

Manages interpolation keyframes for the Lakitu's position when ascending and descending.

Definition at line 13 of file JugemUnit.hh.

Classes

struct  InterpKeyframe
 

Public Member Functions

 JugemInterp (u32 count)
 
void initKeyframes (f32 startRate, f32 endRate, f32 tDelta, u32 param4)
 
bool calc (f32 tDelta)
 
void setStartKeyframe (f32 param1)
 
void addKeyframe (f32 rate, f32 tDelta, u32)
 
f32 calcInterpRate (f32 time) const
 
f32 rate () const
 

Static Private Member Functions

static f32 Lerp (f32 a, f32 b, f32 t)
 

Private Attributes

owning_span< InterpKeyframem_keyframes
 
u32 m_numKeyframes
 
f32 m_time
 
f32 m_rate
 

Constructor & Destructor Documentation

◆ JugemInterp()

Kinoko::Field::JugemInterp::JugemInterp ( u32 count)
inline

Definition at line 15 of file JugemUnit.hh.

Member Function Documentation

◆ addKeyframe()

void Kinoko::Field::JugemInterp::addKeyframe ( f32 rate,
f32 tDelta,
u32  )
inline0x8074C0B4

Definition at line 56 of file JugemUnit.hh.

◆ calc()

bool Kinoko::Field::JugemInterp::calc ( f32 tDelta)
inline0x80723AF8

Definition at line 36 of file JugemUnit.hh.

◆ calcInterpRate()

f32 Kinoko::Field::JugemInterp::calcInterpRate ( f32 time) const
inlinenodiscard0x8074C1E0

Definition at line 63 of file JugemUnit.hh.

◆ initKeyframes()

void Kinoko::Field::JugemInterp::initKeyframes ( f32 startRate,
f32 endRate,
f32 tDelta,
u32 param4 )
inline0x8072370C

Definition at line 25 of file JugemUnit.hh.

◆ Lerp()

static f32 Kinoko::Field::JugemInterp::Lerp ( f32 a,
f32 b,
f32 t )
inlinestaticnodiscardprivate0x8074C3F0

Definition at line 98 of file JugemUnit.hh.

◆ rate()

f32 Kinoko::Field::JugemInterp::rate ( ) const
inlinenodiscard

Definition at line 85 of file JugemUnit.hh.

◆ setStartKeyframe()

void Kinoko::Field::JugemInterp::setStartKeyframe ( f32 param1)
inline0x8074C048

Definition at line 49 of file JugemUnit.hh.

Member Data Documentation

◆ m_keyframes

owning_span<InterpKeyframe> Kinoko::Field::JugemInterp::m_keyframes
private

Definition at line 105 of file JugemUnit.hh.

◆ m_numKeyframes

u32 Kinoko::Field::JugemInterp::m_numKeyframes
private

Definition at line 106 of file JugemUnit.hh.

◆ m_rate

f32 Kinoko::Field::JugemInterp::m_rate
private

Definition at line 108 of file JugemUnit.hh.

◆ m_time

f32 Kinoko::Field::JugemInterp::m_time
private

Definition at line 107 of file JugemUnit.hh.