How to have an object follow the cursor

This needs mathematics!

Specifically something to do with the camera View Matrix, camera Projection Matrix, Mouse co-ordinates, and the Window resolution. I know these are the parameters needed, but I still dont know how to put them together to get the result.

1 Like