diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-17 20:33:28 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-17 20:33:28 -0300 |
| commit | 3b2efbb81ae7020d2bccb0b7a15a4f5eb14b1f63 (patch) | |
| tree | bbbc6c2a465c9e9e2eb5ecfef70a29d471b182b2 /src/actors | |
| parent | d52831e4ba9de27fdc70cd824a81f812011b81ce (diff) | |
fthismigration/vec-struct
Diffstat (limited to 'src/actors')
| -rw-r--r-- | src/actors/banana/update.inc.c | 4 | ||||
| -rw-r--r-- | src/actors/blue_and_red_shells/update.inc.c | 18 | ||||
| -rw-r--r-- | src/actors/green_shell/update.inc.c | 4 |
3 files changed, 13 insertions, 13 deletions
diff --git a/src/actors/banana/update.inc.c b/src/actors/banana/update.inc.c index def009af0..7af4b5b6e 100644 --- a/src/actors/banana/update.inc.c +++ b/src/actors/banana/update.inc.c @@ -72,7 +72,7 @@ void update_actor_banana(struct BananaActor* banana) { temp_f0 = (player->unk_094 * 0.75f) + 3.5f + pad3; } vec3f_set(someVelocity, 0, pad3, temp_f0); - func_802B64C4(someVelocity, player->rotation[1] + player->unk_0C0); + func_802B64C4(someVelocity, player->rotation.y + player->unk_0C0); banana->velocity.x = someVelocity[0]; banana->velocity.y = someVelocity[1]; banana->velocity.z = someVelocity[2]; @@ -121,7 +121,7 @@ void update_actor_banana(struct BananaActor* banana) { someVelocity[0] = 0.0f; someVelocity[1] = 0.0f; someVelocity[2] = -5.0f; - func_802B64C4(someVelocity, player->rotation[1] + player->unk_0C0); + func_802B64C4(someVelocity, player->rotation.y + player->unk_0C0); unkX = player->pos.x + someVelocity[0]; unkY = player->pos.y + someVelocity[1]; unkZ = player->pos.z + someVelocity[2]; diff --git a/src/actors/blue_and_red_shells/update.inc.c b/src/actors/blue_and_red_shells/update.inc.c index 3ae65e218..37a99a346 100644 --- a/src/actors/blue_and_red_shells/update.inc.c +++ b/src/actors/blue_and_red_shells/update.inc.c @@ -27,7 +27,7 @@ void func_802B3B44(struct ShellActor* shell) { f32 temp_f18_3; f32 temp_f16_3; f32 temp_f26; - Vec3f origPos; + Vec3fa origPos; currentWaypoint = shell->pathIndex; temp_f2 = D_80164490[currentWaypoint].posX; @@ -116,7 +116,7 @@ void func_802B3E7C(struct ShellActor* shell, Player* player) { f32 x_velocity; f32 z_velocity; f32 xz_dist; - Vec3f newPosition; + Vec3fa newPosition; x_velocity = player->pos.x; x_velocity -= shell->pos.x; @@ -186,13 +186,13 @@ s16 func_802B3FD0(Player* owner, struct ShellActor* shell) { } void func_802B4104(struct ShellActor* shell) { - if ((shell->unk30.surfaceDistance[0] < 0.0f) && - ((shell->unk30.unk48[1] < 0.25f) || (shell->unk30.unk48[1] > -0.25f))) { + if ((shell->unk30.surfaceDistance.x < 0.0f) && + ((shell->unk30.unk48.y < 0.25f) || (shell->unk30.unk48.y > -0.25f))) { destroy_destructable_actor((struct Actor*) shell); func_800C98B8(shell->pos, shell->velocity, SOUND_ARG_LOAD(0x19, 0x00, 0x80, 0x54)); shell->flags |= 0x80; - } else if ((shell->unk30.surfaceDistance[1] < 0.0f) && - ((shell->unk30.unk54[1] < 0.25f) || (shell->unk30.unk54[1] < -0.25f))) { + } else if ((shell->unk30.surfaceDistance.y < 0.0f) && + ((shell->unk30.unk54.y < 0.25f) || (shell->unk30.unk54.y < -0.25f))) { destroy_destructable_actor((struct Actor*) shell); func_800C98B8(shell->pos, shell->velocity, SOUND_ARG_LOAD(0x19, 0x00, 0x80, 0x54)); shell->flags |= 0x80; @@ -212,7 +212,7 @@ void update_actor_red_blue_shell(struct ShellActor* shell) { f32 temp_f2; s16 temp_v0; UNUSED s16 pad3; - Vec3f somePosVel; + Vec3fa somePosVel; struct Controller* controller; TripleShellParent* parent; UNUSED f32 pad0; @@ -232,7 +232,7 @@ void update_actor_red_blue_shell(struct ShellActor* shell) { UNUSED f32 pad15; UNUSED f32 pad16; UNUSED f32 pad17; - Vec3f origPos; + Vec3fa origPos; pad1 = shell->pos.x; pad0 = shell->pos.z; @@ -324,7 +324,7 @@ void update_actor_red_blue_shell(struct ShellActor* shell) { somePosVel[0] = 0.0f; somePosVel[1] = 0.0f; somePosVel[2] = height; - func_802B64C4(somePosVel, (s16) (player->rotation[1] + player->unk_0C0)); + func_802B64C4(somePosVel, (s16) (player->rotation.y + player->unk_0C0)); shell->velocity.x = somePosVel[0]; shell->velocity.y = somePosVel[1]; shell->velocity.z = somePosVel[2]; diff --git a/src/actors/green_shell/update.inc.c b/src/actors/green_shell/update.inc.c index 04f8e2d95..0eb1b1e2a 100644 --- a/src/actors/green_shell/update.inc.c +++ b/src/actors/green_shell/update.inc.c @@ -67,7 +67,7 @@ void update_actor_green_shell(struct ShellActor* shell) { somePosVel[0] = 0.0f; somePosVel[1] = 0.0f; somePosVel[2] = -var_f2; - func_802B64C4(somePosVel, player->rotation[1] + player->unk_0C0); + func_802B64C4(somePosVel, player->rotation.y + player->unk_0C0); shell->velocity.x = somePosVel[0]; shell->velocity.y = somePosVel[1]; shell->velocity.z = somePosVel[2]; @@ -119,7 +119,7 @@ void update_actor_green_shell(struct ShellActor* shell) { somePosVel[0] = 0.0f; somePosVel[1] = 0.0f; somePosVel[2] = var_f2; - func_802B64C4(somePosVel, player->rotation[1] + player->unk_0C0); + func_802B64C4(somePosVel, player->rotation.y + player->unk_0C0); shell->velocity.x = somePosVel[0]; shell->velocity.y = somePosVel[1]; shell->velocity.z = somePosVel[2]; |
