HI !!! I'm trying to make a code to select differents objects, but the command "pick object" it's crazy with my models, look this code:
MAKE OBJECT PLAIN 1,1,10
ROTATE OBJECT 1,90,0,0
MAKE OBJECT CUBE 2,0.5
DO
if pick object (mousex(),mousey(),1,1) and mouseclick()=1
SET CURSOR 0,0
PRINT "plane"
ENDIF
if pick object (mousex(),mousey(),2,2) and mouseclick()=1
SET CURSOR 0,0
PRINT "cube"
ENDIF
LOOP
when detect one object do not detect the other, or in other cases detect some parts of the object and not other parts
I'm totally lost, I don't have a good detection objects, any idea?