bpred754 / Imperium

Real-Time Strategy game written with C# and Unity 3D Game Engine
1 stars 1 forks source link

Unit Path Finding #6

Closed bpred754 closed 9 years ago

bpred754 commented 9 years ago

Units will need to find the best path when they are selected to move. This task will be dependent on task "Create Map Data Structure."

CurtisRose commented 9 years ago

PathFinding is working now.

The main current issue is with units not attempting to get to blocked off locations. What should probably happen is if a location is blocked have the unit look for locations around that location until they find an open spot and then travel there.

Also, units should face the direction of travel.

CurtisRose commented 9 years ago

Okay, unit movement is totally working now. Units face direction of travel. (They snap to the direction of travel, maybe we'd like them to rotate to that location.) They also look for the closest walkable location when their target is unwalkable. It works without lag for large numbers of units and also for when targets are deep within obstacles.

It could probably use a bit of optimizing, but for right now, I am happy with unit movement. Time to move to something else. Buildings I think.