Thread: Navmesh Idea
View Single Post
Re: Navmesh Idea
Old
  (#8)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: Navmesh Idea - 13-12-2004

like-a this...

player stands at x,y...

Code:
list of faces = navmeshthing[x][y];

while ( (current_face = next face in list of faces) != NULL )
{
     
    if ( standing_on_face (current_face,player_stand_point) ) 
    // all angles in face from all vertices from stand point add up to 360 degrees
    {
        face_player_is_standing_on = current_face;
    }
}
I think .. from looking at it a while back

Last edited by Cheeseh; 13-12-2004 at 16:18..
  
Reply With Quote