CylonSB / bounded-planet

Test Game Please Ignore
6 stars 1 forks source link

Added some basic math utils #10

Closed Jerald closed 4 years ago

Jerald commented 4 years ago

Created some basic random math utilities.

Someone should actually check to make sure they're right though...

martindevans commented 4 years ago

These look correct, but a bit odd. Getting something in camera space is a bit useless - why not just have a screen_to_world function instead of screen_to_camera -> camera_to_world?

Handy reference illustrating what I mean: https://gamedev.stackexchange.com/a/23398/1687