PDA

View Full Version : modelsunderray not detecting some models


dsdsdsdsd
02-08-2005, 03:09 AM
hello;

I have a floor model; it is visible; 3DPI acknowledges its existence; I can use the 3DPI to move the floor model;

however when I do a modelsunderray while standing above this particular floor model I do not get a response for that model, whereas I do get correct modelsunderray responses when standing over other floor models;

any thoughts why a model might not be detectable?

thanks
Shannon Burnett
Asheville NC USA

MentalFish
02-08-2005, 06:14 PM
Are you sure the ray hits it? What about using modelsUnderLoc to see if you get access to the model by clicking it, and then try modelsUnderRay again:

on mouseUp
pt = the mouseLoc - point(sprite(1).left, sprite(1).top)
n = sprite(1).camera.modelUnderLoc(pt)
put n
end

dsdsdsdsd
02-09-2005, 08:45 PM
petterns, thanks for responding;

I found the problem: I had one floor mesh; I used it for the left side of a room and then I used it again for the right side of the room - but I scaled it (1,1,-1) to mirror it; as a result I was having the problem;

I should have posted my solution once I realised it;

thanks
Shannon Burnett
Asheville NC USA