0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

#衝突判定

Last updated at Posted at 2022-08-23

:star2:衝突判定:star2:   P211

👉 オブジェクト同士が衝突した時に処理を行う仕組み



:bulb:成果:bulb:

⭕円の中心と半径の利用📐 P212
中心間の距離が,半径の和より小さければ衝突
💪Physicsで衝突を検出🦾 ・P294
・Colliderコンポーネントをアタッチしたオブジェクト同士を衝突させる
【オブジェクトの準備】
物体① : Rigidbody + Collider
物体② : Collider

【メソッド】
P295

✨重要✨

衝突判定をするとき,物体はtranslateメソッドを使って移動させるのではなく
Physics を用いて移動させる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?