Very fast 3D distance check?

后端 未结 13 2003
南方客
南方客 2021-01-31 15:40

Is there a way to do a quick and dirty 3D distance check where the results are rough, but it is very very fast? I need to do depth sorting. I use STL sort like this

13条回答
  •  野性不改
    2021-01-31 16:21

    If you could center your coordinates around the player, use spherical coordinates? Then you could sort by the radius.

    That's a big if, though.

提交回复
热议问题