Start unit can't move north

Start unit can't move north

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Start unit can't move north

Post by rattle »

Don't know if anyone ever noticed that but when starting a game you can't move your starting unit directly north, it just sits there. I noticed this a long time ago and just felt to bring it up.

To reproduce just run the comtest on any map with any mod. Then select your starting unit and give a move order north of it. The comm in BA441 would just walk on the spot for instance. No idea if aircraft is affected but ground units are.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

Basically this is the result of degenerate vector math. The vector describing the direction to the destination waypoint is (0, 0, -1), which gets converted to a single heading value in the range [0, 32767] (zero in this case). The commander's initial heading value however is also zero. That means the heading difference is zero whereas it should be 16348 (aka. 180 degrees), which causes your boy to get stuck in place and never actually reach the waypoint.
Last edited by Kloot on 08 Aug 2007, 12:15, edited 1 time in total.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

Everybody do the moonwalk now!
Post Reply

Return to “Help & Bugs”