Files
obsidian-notes/2Areas/游戏开发/物理碰撞/物理碰撞算法.md
zzzisfunnyboy 81a97f87c0 1
2026-04-01 00:58:24 +08:00

12 lines
438 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AABB
## SAP算法
这是一种先用扫描线扫描单条轴有无碰撞的快筛算法
- 假设一个2D项目
- 如果xa(min,max)与xb(min,max)在x轴没有交集那么y就无再扫描直接排除
- y轴也是同理
# SAT 分离轴定理
# GJK 明可夫斯基差
- 两个形状每个顶点两两相差得出新的形状,如果原点位于形状内,则有碰撞
- 再次优化,有选择的相减,是否有最简模型