X-Git-Url: http://git.purplebirdman.com/frog-ninja.git/blobdiff_plain/df26d4a32e30692efba3fb3b7270501dc005bbff..refs/heads/master:/asset/character/model/state/dashing_state.gd diff --git a/asset/character/model/state/dashing_state.gd b/asset/character/model/state/dashing_state.gd index 0c6ea9e..a404968 100644 --- a/asset/character/model/state/dashing_state.gd +++ b/asset/character/model/state/dashing_state.gd @@ -29,8 +29,8 @@ func update(input: InputPacket, delta: float): if input.player_movement_direction == Vector2.ZERO: dir = Vector2(player.last_movement_vector.x, player.last_movement_vector.z) else: - dir = input.player_movement_direction.normalized() - new_position = player.global_position + Vector3(dir.x, 0, dir.y) * dash_length + dir = input.player_movement_direction + new_position = player.global_position + Vector3(dir.x, 0, dir.y).normalized() * dash_length rotate_skin(new_position)