Collision & spatial queries · 1 / 10
Ray Casting
線と形状の交差から照準や接地を調べる。
Compare in motion
Interactive model
照準のレーザー
AReference
障害物を通過する照準
BRay Casting100%
狙った対象や接地点を検出できる
Scrub to pause and inspect. At 0%, B matches A; at 100%, B shows the effect. The scene repeats every 8 seconds.
Look for: 最初の交点を探す → 対象で止まる。
This model simplifies the technique to show its use case and effect. Operation counts describe the model; they are not performance measurements.
Read the storyboard
例: 照準のレーザー
1. Start
光線が出る
2. Change
最初の交点を探す
3. Result
対象で止まる
How it works
1. Input
始点と方向の光線
2. Process
形との最初の交差を探す
3. Result
命中位置
Further reading
Box2D Collision ↗A general reference for this subcategory.