fast bullet accelerates instead of being fast immediately
This commit is contained in:
parent
68e61c5204
commit
b1df817ece
5 changed files with 11 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue