I'd like to know how to make a character moving on or inside other objects.
E.g. If I got the model of a house and I want the character to be able to walk on the roof as well as inside the rooms.
For moving on top of it, I suppose you need to find the triangle the charactermodel is touching, then get the height of the point inside the triangle.
But how can you get the triangle and how can you do it fast enough in big models?
To move inside of a model . . . I have no idea what to do. Could you give me some tips?
(I'm using directx 11 and c++)
Thanks a lot
Edited by gnomgrol, 09 September 2012 - 04:03 AM.