Determining when a character has reached a ledge?

Blitz3D Forums/Blitz3D Programming/Determining when a character has reached a ledge?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you want to use linepicks then a simple method is this:

while walk is selected, and the player begins to move in a direction (ie presses cursor key in some games) then perform a linepick at the location where the character is about to move to, straight down for a reasonable distance. If it returns '0' then no mesh has been picked meaning the player is moving towards a sheer drop. If that is the case then disallow the move.