Go to the source code of this file.
◆ anonymous enum
Enumerator |
---|
SUBSTATE_FLYING | |
SUBSTATE_FALLING | |
Definition at line 4 of file knockback.c.
◆ action_update_knockback()
void action_update_knockback |
( |
void | | ) |
|
Definition at line 9 of file knockback.c.
9 {
11 f32 dx, dy;
12 f32 speed;
13
14 static f32 ReturnAngle;
15
17 playerStatus->
flags &= ~PS_FLAG_ACTION_STATE_CHANGED;
18
20
22
28
30
34 }
35
37
39
41 speed *= 0.5f;
42 }
43
44 playerStatus->
pos.
x += speed * dx;
45 playerStatus->
pos.
z -= speed * dy;
46
49
51
55 }
56 } else {
57 s32 colliderID;
58
60
64 }
65 }
66}
@ PS_FLAG_ENTERING_BATTLE
@ PS_FLAG_ACTION_STATE_CHANGED
@ CAMERA_MOVE_IGNORE_PLAYER_Y
f32 integrate_gravity(void)
void suggest_player_anim_always_forward(AnimID anim)
s32 get_collider_flags(s32 colliderID)
f32 player_check_collision_below(f32, s32 *colliderID)
void set_action_state(s32 actionState)
void sin_cos_rad(f32 rad, f32 *outSinTheta, f32 *outCosTheta)
f32 get_xz_dist_to_player(f32, f32)
f32 player_fall_distance(void)
PlayerStatus gPlayerStatus