Open feliwir opened 5 years ago
So here is a more in depth list of what needs to be done:
MapLoader.cs
at LoadEntry
for this part (a Scene3D should contain a navigation mesh)Scene3D
class (maybe?) should have a method to calculate such a List for 2 points.GameObject.cs
already has a MoveTo method, but instead of just moving directly to the target point it should call the method described above to get list of waypoints it must walk pass for correct pathfinding.As i said above i think an extern library for the pathfinding part might make sense here
Works mostly. Other gameobjects are not recognized as obstacles yets. Needs more work
When units are moving they should use pathfinding to navigate to their target location. Use an A* based pathfinding algorithm. See e.g. https://github.com/Robmaister/SharpNav