Looking for an algorithm outline, not a handout here![]()
I'm curious if anyone has a working algorithm for navigation using raycasting (traceline). In theory, you should be able to do stuff with projecting your position forward and raycasting to find collision with ground/water/etc. to look for things like holes in the geometry and even unclimbable slopes. This would be independent of any knowledge from something like a navmesh (although a navmesh would offser superior knowledge in many ways, I don't have working navmesh code at the moment, so that's academic).
I have an idea about how to do this, but it would involve a LOT of raycasting, upwards of a hundred or more rays/frame, and I'm wondering if this is doable without a performance hit.
Anyone got any thoughts?