How to use Mesh.Intersect

You have to provide it ray in the model space. This means that you need a point in space and a direction. If you have this data in world space then you'll have to transform it to model space by multiplying by inverse of world matrix. It'll return true or false telling you if the ray hit the model. Some overloads also give you further information about which face exactly was hit and so on...
 
wow...
there's more to this than i thought :O - im gonna go look into this
thanks kavan (hey btw, are you the same guy who made the ArtificialHeart game engine???, cuz i know ive seen you before),
pent
 
Back
Top