| 1 | #include "MapObj/WorldMapEarth.h" |
|---|---|
| 2 | |
| 3 | #include "Library/LiveActor/ActorInitUtil.h" |
| 4 | #include "Library/LiveActor/ActorPoseUtil.h" |
| 5 | #include "Library/Math/MathUtil.h" |
| 6 | |
| 7 | WorldMapEarth::WorldMapEarth(const char* name) : al::LiveActor(name) {} |
| 8 | |
| 9 | void WorldMapEarth::init(const al::ActorInitInfo& initInfo) { |
| 10 | al::initMapPartsActor(actor: this, initInfo, suffix: nullptr); |
| 11 | makeActorAlive(); |
| 12 | } |
| 13 | |
| 14 | void WorldMapEarth::control() { |
| 15 | al::setRotateY(actor: this, y: al::modf(a: al::getRotate(actor: this).y + 0.05f + 360.0f, b: 360.0f) + 0.0f); |
| 16 | } |
| 17 |