Does anybody know how you can make a 3D object (in this case a plain) follow around the mouse cursor, while staying over the matrix?
My current code is:
`Set up program environment
set display mode 800,600,16: 'Only for example, set in compiler settings
sync on: sync rate 60
autocam off
`Load player object
load object "character.x" ,1: yrotate object 1, 180: fix object pivot 1: hide object 1
`Make plain and position it flatly
make object plain 2, 10, 10: texture object 2,1: xrotate object 2,90: fix object pivot 2: set object 2, 1, 1, 0, 0, 0, 0, 0: ghost object on 2, 0: hide object 2
`Set coordinates for player object
x#=50.0
z#=50.0
a#=0.0
`Make random matrix
make matrix 1,1000,1000,20,20
prepare matrix texture 1,2,1,1
randomize matrix 1, 15
update matrix 1
`Unhide both objects
show object 1
show object 2
do
y#=get ground height(1, x#, z#)+5: `Player object y coordinate
`**Player control routine, not included in this example**
position object 1, x#, y#, z#
yrotate object 1,a#
`Plain position. Need to find aX# and aZ# according to mouse position
position object 2, aX#, get ground height(1, aX#, aZ#)+5, aZ#
`Camera position looking at player object
position camera x#, y#+60, z#-45
point camera x#, y#, z#
sync
loop
The case with this code is that plain is textured with an arrow, which shows which direction the player is gonna walk when the right button is pressed. The plain's position is meant to be determined by the mouse's position, but I'm not very familiar with 2D to 3D calculations

. Can anybody help me?
Cheers,
Kentaree.
Whatever I did I didn't do it!