Hi!
Just asking for a guidance...
Recent changes to mmaps caused some issues such as https://github.com/ike3/mangos/issues/159. Copying it here:
Just asking for a guidance...
Recent changes to mmaps caused some issues such as https://github.com/ike3/mangos/issues/159. Copying it here:
The question is: how to obtain "end" coordinates of the generated path? I tried methods such as
Bots use a simple movement strategy, e.g. when following:
1) select a point near target with the appropriate angle (to make sure bots do not overlap)
2) bot->GetMotionMaster().MovePoint(mapId, x, y, z, true)
The problem is when there is a bridge or other structure with the same x,y coord but with upper z. MMap generator always picks a way to the upper z position making bot climbing or jumping instead of just going under the bridge.
Could be pathfinding issue, not sure can be fixed in MovementAction.
- Code:
bot->UpdateGroundPositionZ(x, y, z);
bot->UpdateAllowedPositionZ(x, y, z);