物理引擎的空间数据结构

物理引擎利用空间数据结构如uniform grid、spatial hashing、BSP tree、kd-tree、Bounding Volume Hierarchy(AABB Tree)等加速碰撞检测。碰撞检测包括离散和连续检测,以及空间查询。AABB Tree在物理引擎中广泛用于ray cast和shape cast,通过自顶向下遍历优化查询效率。更新AABB树通常采用自底向上或启发式算法。
摘要由CSDN通过智能技术生成

PhysX document: Scene queries are performed in three phases: broad phase, midphase and narrow phase.
Broad phase traverses the global scene spatial partitioning structure to find the candidates for mid and narrow phases.
midphase traverses the triangle mesh and heightfield internal culling structures, to find a smaller subset of the triangles in a mesh reported by the broad phase.
Narrow phase performs exact intersection tests (ray test for raycast() queries, and exact sweep shape tests or overlap tests for sweep() and overlap() queries).

GDC2013上Gino van den Bergen的分享:Physics for Game Programmers: Spatial Data Structures

内容:1)物理引擎中的碰撞检测(collision query);2)用于加速碰撞检测的常用空间数据结构

物理引擎使用空间数据结构的首要目的就是要加速query,包括离散碰撞检测(discrete collision detection)、连续碰

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值