Collision & spatial queries · 8 / 10
Sweep and Prune
軸上で重なる区間から衝突候補を選ぶ。
Compare in motion
Interactive model
動く物体の候補
AReference
すべての区間を比較する
BSweep and Prune100%
衝突判定の前段を軽くできる
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.