Revolutionary-Games / Thrive

The main repository for the development of the evolution game Thrive.
https://revolutionarygamesstudio.com/
Other
2.85k stars 506 forks source link

Make cells rotate around their center of mass (fractional offset) #1645

Open hhyyrylainen opened 4 years ago

hhyyrylainen commented 4 years ago

instead of always having the hex at 0,0 be the center of the cell in the stage. Instead could compute average position of all hexes and use that as offset all the organelles when rendering and in physics. This will prevent weirdness if the player doesn't build their cell around the middle of the editor grid.

closes #1678

athariqk commented 3 years ago

This should be already fixed by #1695

hhyyrylainen commented 3 years ago

I left this open because that only moves the center based on the hexes. This issue is for making it be possible to fractionally move the origin offset, to make it exactly perfect.

hhyyrylainen commented 1 year ago

I'm starting to think that the current approach is probably good enough and this can be just closed if no one cares enough to implement this slight improvement.