How do I find hash value of a 3D vector?

前端 未结 4 2169
一向
一向 2021-02-10 07:19

I am trying to perform broad-phase collision detection with a fixed-grid size approach. Thus, for each entity\'s position: (x,y,z) (each of type float), I need to find which cel

4条回答
  •  梦毁少年i
    2021-02-10 07:40

    The grid approach is going to have problems near the boundaries of the grid boxes. Why not use BSP trees instead?

提交回复
热议问题