All right, since the demand is so high here you go, you can have it. I wrote this shortly after D-Man and I wrote the code for the flat matrix. It basically calculates the mouse vector from the camera into open space and then travels along it until it hits the matrix.
Feel free to use this code, but please give me and D-Man some credits.
To get the mouse coordinates call the function like this:
eg. mmcoord(mousex(),mousey(),1,4000,60)
- scrx# and scry# are the screen coordinates
- matnum is the matrix number
- r# is the length of the vector and should ideally be equal to the camera range or distance
- FOV# is the field of view of the camera (make sure you get this value right!)
Smile and be happy, things could be worse!
So I smiled and was happy, and things got worse...