========================================
// Assum that P1 is the current Location of the character
// P2 is the Point away from P1 by the required step length
Then to check for collision do
Cast a ray from P1 to P2
If the ray intersects any of the Level's Mesh Polygons
Compare the Distance of the intersection point to the ray length
If (Pintersection – P1 < P2 –P1 ) //this means there is one or more poly between P1,P2
Then there is a collision
Else
No collision
=========================================