How do I test for collision of two moving 2d oriented bounding boxes?

前端 未结 5 1584
抹茶落季
抹茶落季 2021-02-10 01:31

The OBBs have a position(x,y), a velocity(x,y) and an orientation(Matrix). Given periodic updates, the OBBs must collide with each other, returning the fraction of the move tha

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-10 02:03

    You probably should implement a quadtree (see wikipedia) to keep track of all the objects on the plane. I unfortunately have never implemented one for collision detection, but it seems that other people have been able to create similar scenarios to yours using quad trees.

提交回复
热议问题