chore: Engine Time Update

This commit is contained in:
Syntriax 2024-02-01 18:47:27 +03:00
parent bbf71f0be6
commit 0cb8170530
3 changed files with 3 additions and 3 deletions

2
Engine

@ -1 +1 @@
Subproject commit 1dc8f3d272b2b46e2778d9439a5f8605ab3092ff
Subproject commit 5d897f2f56c711629f8cbf915d0ed112cf21680f

View File

@ -60,7 +60,7 @@ public class BallBehaviour : BehaviourOverride
if (rigidBody.Velocity.MagnitudeSquared <= 0.01f)
return;
Vector2D speedUp = rigidBody.Velocity.Normalized * (float)Time.Elapsed.TotalMilliseconds;
Vector2D speedUp = rigidBody.Velocity.Normalized * Time.DeltaTimeFrame;
rigidBody.Velocity += speedUp * SpeedUpMultiplier;
}

View File

@ -32,7 +32,7 @@ public class MovementBallBehaviour : BehaviourOverride
if (rigidBody.Velocity.MagnitudeSquared <= 0.01f)
return;
Vector2D speedUp = rigidBody.Velocity.Normalized * (float)Time.Elapsed.TotalMilliseconds;
Vector2D speedUp = rigidBody.Velocity.Normalized * Time.DeltaTimeFrame;
rigidBody.Velocity += speedUp * SpeedUpMultiplier;
}