fast bullet accelerates instead of being fast immediately

This commit is contained in:
Vinzenz Schroeter 2024-05-07 21:48:58 +02:00
parent 68e61c5204
commit b1df817ece
5 changed files with 11 additions and 5 deletions

View file

@ -24,6 +24,8 @@ internal sealed class MoveBullets(
bullet.Rotation += difference * inertiaFactor;
}
bullet.Speed *= 1 + (bullet.Acceleration * delta.TotalSeconds);
var speed = bullet.Speed * delta.TotalSeconds;
var angle = bullet.Rotation * 2 * Math.PI;
bullet.Position = new FloatPosition(