25 switch (fruit->
state) {
37 temp_f12 = fruit->
velocity[0] /
sqrtf((temp_f2 * temp_f2) + (temp_f16 * temp_f16) + (temp_f14 * temp_f14));
41 fruit->
pos[0] = player->
pos[0] + temp_f2;
42 fruit->
pos[1] = player->
pos[1] + temp_f16;
43 fruit->
pos[2] = player->
pos[2] + temp_f14;
55 player->
pos[0] -= temp_f2 * 4.0f;
56 player->
pos[2] -= temp_f14 * 4.0f;
57 player->
velocity[0] -= temp_f2 * 0.7f;
58 player->
velocity[2] -= temp_f14 * 0.7f;
79 if (fruit->
state != 0) {
TrackWaypoint * D_80164490
Definition code_80005FD0.c:166
u16 gNearestWaypointByPlayerId[12]
Definition code_80005FD0.c:162
s8 get_surface_type(u16 index)
Definition collision.c:502
#define PLAYER_KART_AI
Definition defines.h:77
#define STAR_EFFECT
Definition defines.h:323
#define GRAND_PRIX
Options for gModeSelection.
Definition defines.h:121
void func_800C9060(u8 playerId, u32 soundBits)
Definition external.c:2862
void update_actor_kiwano_fruit(struct KiwanoFruit *fruit)
Updates the kiwano fruit actor. Actor used in DK's Jungle Parkway.
Definition update.inc.c:12
Player * gPlayerOne
Definition main.c:72
Player gPlayers[NUM_PLAYERS]
Definition main.c:71
s32 gModeSelection
Definition main.c:181
@ GRASS
Definition mk64.h:88
#define SOUND_ARG_LOAD(sound_bank, byte2, byte3, sound_id)
Definition sounds.h:14
s32 D_80162DF8
Definition staff_ghosts.c:57
u16 unk34
Definition common_structs.h:135
u16 meshIndexZX
Definition common_structs.h:139
Definition actor_types.h:230
f32 bonkTimer
Definition actor_types.h:236
Vec3f velocity
Definition actor_types.h:244
s16 animState
Definition actor_types.h:239
s16 animTimer
Definition actor_types.h:240
s16 targetPlayer
Definition actor_types.h:234
Vec3f pos
Definition actor_types.h:243
s16 state
Definition actor_types.h:235
Definition common_structs.h:249
u32 effects
Definition common_structs.h:298
Collision collision
Definition common_structs.h:324
u16 type
Definition common_structs.h:250
Vec3f velocity
Definition common_structs.h:263
Vec3f pos
Definition common_structs.h:259
s16 posZ
Definition waypoints.h:9
s16 posY
Definition waypoints.h:8
s16 posX
Definition waypoints.h:7
signed int s32
Definition ultratypes.h:15
float f32
Definition ultratypes.h:34
unsigned short int u16
Definition ultratypes.h:14