Mario Kart 64
Loading...
Searching...
No Matches
update.inc.c
Go to the documentation of this file.
1#include <actors.h>
2
9 egg->pathRot += 0x5B;
10 egg->pos[0] = egg->pathCenter[0] + (sins(egg->pathRot) * egg->pathRadius);
11 egg->pos[2] = egg->pathCenter[2] + (coss(egg->pathRot) * egg->pathRadius);
12 if ((egg->flags & 0x400) != 0) {
13 egg->pathCenter[1] -= 0.12;
14 if (egg->pathCenter[1] < -3.0f) {
15 egg->pathCenter[1] = -3.0f;
16 }
17 egg->pos[1] += egg->pathCenter[1];
18 if (egg->pos[1] < 0.0f) {
19 egg->pos[1] = 0.0f;
20 egg->pathCenter[1] = 0.0f;
21 egg->flags &= ~(1 << 10);
22 }
23 egg->eggRot -= 0x4FA;
24 }
25 egg->eggRot -= 0x222;
26}
f32 sins(u16 arg0)
Definition math_util.c:1077
f32 coss(u16 arg0)
Definition math_util.c:1081
Definition actor_types.h:212
s16 eggRot
Definition actor_types.h:220
s16 flags
Definition actor_types.h:214
Vec3f pos
Definition actor_types.h:223
f32 pathRadius
Definition actor_types.h:217
Vec3f pathCenter
Definition actor_types.h:226
s16 pathRot
Definition actor_types.h:219
void update_actor_yoshi_egg(struct YoshiValleyEgg *egg)
Updates the Yoshi egg actor.
Definition update.inc.c:8