beyond-all-reason / spring

A powerful free cross-platform RTS game engine
https://beyond-all-reason.github.io/spring/
Other
190 stars 97 forks source link

Reverse built units can retain velocity #1413

Closed GoogleFrog closed 3 months ago

GoogleFrog commented 4 months ago

Reverse built units can end up phasing over the map, and even off the map, because they retain some velocity gained by pushing against other units.

image

  1. Spawn 100 cloakraid, set them to repeat, and tell them to move to a point.
  2. Reclaim one near the centre
  3. Watch its nanoframe slide out of the mass of units.

This correct behaviour would be to zero their velocity when they are reclaimed, and prevent any new velocity being gained from pushing.

spring_2MD2d4atRv

spring_w0QfFuyZg6

marcushutchings commented 4 months ago

Do you have a replay?

marcushutchings commented 4 months ago

Ah, scratch that, I've reproduced the issue.