开发者

Get Bounding Box for ALL Bodies

开发者 https://www.devze.com 2023-02-08 21:48 出处:网络
I am trying to get the bounding box for all the bodies in a box2d world (think a scenario where I want to get the largest y-value of all bodies).

I am trying to get the bounding box for all the bodies in a box2d world (think a scenario where I want to get the largest y-value of all bodies).

I need to do this every frame so am not looking to iterator over the boundi开发者_开发知识库ng box of every body. Is there a more efficient way to do this?


I wound up just iterating over the all bodies.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号