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

#include <KartCamera.hh>

Description

Tracks the current state of the front and backwards player cameras.

Definition at line 9 of file KartCamera.hh.

Public Member Functions

void init ()
 

Private Attributes

EGG::Vector3f m_pos
 
f32 m_bigAirHeight
 Additional camera height applied after 20 frames of airtime.
 
f32 m_1c
 TODO: Seems to be related to boost-induced pitch.
 
EGG::Vector3f m_prevPos
 
f32 m_dist
 Distance away from TODO.
 
f32 m_bigAirFallPitch
 Height applied once you start falling after 20 frames of airtime.
 
EGG::Vector3f m_targetPos
 The position the camera looks towards.
 

Constructor & Destructor Documentation

◆ KartCameraState()

Kinoko::Render::KartCameraState::KartCameraState ( )
inline

Definition at line 13 of file KartCamera.hh.

Member Function Documentation

◆ init()

void Kinoko::Render::KartCameraState::init ( )
inline0x805A1C3C

Definition at line 26 of file KartCamera.hh.

Member Data Documentation

◆ m_1c

f32 Kinoko::Render::KartCameraState::m_1c
private

TODO: Seems to be related to boost-induced pitch.

Definition at line 34 of file KartCamera.hh.

◆ m_bigAirFallPitch

f32 Kinoko::Render::KartCameraState::m_bigAirFallPitch
private

Height applied once you start falling after 20 frames of airtime.

Definition at line 37 of file KartCamera.hh.

◆ m_bigAirHeight

f32 Kinoko::Render::KartCameraState::m_bigAirHeight
private

Additional camera height applied after 20 frames of airtime.

Definition at line 33 of file KartCamera.hh.

◆ m_dist

f32 Kinoko::Render::KartCameraState::m_dist
private

Distance away from TODO.

Definition at line 36 of file KartCamera.hh.

◆ m_pos

EGG::Vector3f Kinoko::Render::KartCameraState::m_pos
private

Definition at line 32 of file KartCamera.hh.

◆ m_prevPos

EGG::Vector3f Kinoko::Render::KartCameraState::m_prevPos
private

Definition at line 35 of file KartCamera.hh.

◆ m_targetPos

EGG::Vector3f Kinoko::Render::KartCameraState::m_targetPos
private

The position the camera looks towards.

Definition at line 38 of file KartCamera.hh.