A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
ObjectDossunYokoMove.hh
1#pragma once
2
3#include "game/field/obj/ObjectDossun.hh"
4
5namespace Field {
6
8class ObjectDossunYokoMove final : public ObjectDossun {
9public:
12
14 ~ObjectDossunYokoMove() override = default;
15
17 void init() override {
18 m_railInterpolator->init(0.0f, 0);
19 }
20
22 void calc() override {
23 m_railInterpolator->calc();
24 m_flags.setBit(eFlags::Position);
25 m_pos = m_railInterpolator->curPos();
26 }
27};
28
29} // namespace Field
Represents Thwomps that move sideways on the ground on rBC.
Base class for the various different Thwomp types in the game.
Pertains to collision.
constexpr TBitFlag< T, E > & setBit(Es... es)
Sets the corresponding bits for the provided enum values.
Definition BitFlag.hh:62