I searched for "intersect" and got 3 results from the codebase & they all confused the hell out of me.
I know the syntax. But knowing what to type is different from knowing what it does & how to use it.
On the plus side, I just had a pepsi and think I'm starting to figure it out - can u tell me:
a. Where should this line go in relation to my camera?
i.e. If I want to know the camera height from my .x level the line should go straight down from my camera position? (and can the X,Y,Z and ToX,ToY & ToZ be variables e.g camerapositionX#?)
b. So how do I use the position of another object for collision?
i.e. once I know how high my camera is from the .x level, do I check that it is more than a set height (like 10), and if not reposition? something like:
cameraheight#=INTERSECT OBJECT(meshobj,camerapositionX,camerapositionY,camerapositionZ,ToX,ToY,ToZ)
if cameraheight# < 10 then camerapositionY#=camerapositionY# +1
c. Would I have a line in going out from my camera on all sides in case I run into a wall or something?