aevyrie / big_space

Floating origin plugin for spaces larger than the universe
Apache License 2.0
168 stars 22 forks source link

Use with 2d ? #6

Closed Wicpar closed 1 year ago

Wicpar commented 1 year ago

Hi, I am trying to use the plugin for 2d, however the 2d camera doesn't render beyond the first grid it seems. It also seems wasteful to use the 3d grids for 2d.

how would one use the plugin with 2d ? does the camera need to be custo; to take in account the grid cells ? I also need world to screenspace functions, i suppose that also needs special treatment.

Wicpar commented 1 year ago

I managed to do it, it works great with the GlobalTransforms, then just use the normal camera to screenspace, thanks for the plugin !

aevyrie commented 1 year ago

To add some more detail, the plugin doesn't care about the camera at all. It simple updates Transforms and GlobalTransforms based on where the floating origin is relative to each entity's GridCell.