URL:
  <http://gna.org/bugs/?12363>

                 Summary: Endlessly spinning droids - bug in moveGetDirection
                 Project: Warzone Resurrection Project
            Submitted by: per
            Submitted on: Saturday 09/27/2008 at 21:15
                Category: Engine: Movement
                Severity: Important
                Priority: 5 - Normal
                  Status: Confirmed
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: svn/trunk
        Operating System: All
         Planned Release: None

    _______________________________________________________

Details:

There is a subtle bug in moveGetDirection() that results in droids that spin
endlessly in circles, going nowhere. The problem occurs when a droid gets a
path, but is nudged off course, so that it appears closer to the second
waypoint in the path than the first. When moveGetDirection tries to
interpolate a direction for it between the two waypoints, it sends it in a
circle between the two, since it does not understand that it could be closer
to the second waypoint than the first.

Savegame that reproduces the bug is attached.

Also attached is a nasty hack to fix the problem.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Saturday 09/27/2008 at 21:15  Name: spin.tar.gz  Size: 231kB   By: per

<http://gna.org/bugs/download.php?file_id=4831>
-------------------------------------------------------
Date: Saturday 09/27/2008 at 21:15  Name: spin.diff  Size: 1kB   By: per

<http://gna.org/bugs/download.php?file_id=4832>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?12363>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to