g3n / engine

Go 3D Game Engine (http://g3n.rocks)
https://discord.gg/NfaeVr8zDg
BSD 2-Clause "Simplified" License
2.74k stars 292 forks source link

How to Convert screen mouse coordinates to world coordinates? #273

Closed 529124368 closed 2 years ago

Juuliuus commented 2 years ago

try this math for game developers video: https://www.youtube.com/watch?v=zZM2uUkEoFw&list=PLW3Zl3wyJwWOpdhYedlD-yCB7WQoHf-My&index=14

danaugrs commented 2 years ago

The raycasting example in g3nd does this: https://github.com/g3n/g3nd/blob/master/demos/other/raycast.go