当たり判定を取るときは、処理の順番が大事。
当たったかどうかを判定してから、どの方向から当たったかを見ると
きれいに処理がつながります。
当たり判定がうまく行かない場合は処理の順番に気をつけるといいかもしれないですね。
When handling collision detection, the order of processing is important.
First, check whether a collision has occurred, and then determine the direction of the collision.
This order helps keep the logic clean and easy to manage.
If collision detection is not working well, it may be a good idea to review the processing order.
次回
