chore: Engine Time Update
This commit is contained in:
parent
bbf71f0be6
commit
0cb8170530
2
Engine
2
Engine
|
@ -1 +1 @@
|
||||||
Subproject commit 1dc8f3d272b2b46e2778d9439a5f8605ab3092ff
|
Subproject commit 5d897f2f56c711629f8cbf915d0ed112cf21680f
|
|
@ -60,7 +60,7 @@ public class BallBehaviour : BehaviourOverride
|
||||||
if (rigidBody.Velocity.MagnitudeSquared <= 0.01f)
|
if (rigidBody.Velocity.MagnitudeSquared <= 0.01f)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Vector2D speedUp = rigidBody.Velocity.Normalized * (float)Time.Elapsed.TotalMilliseconds;
|
Vector2D speedUp = rigidBody.Velocity.Normalized * Time.DeltaTimeFrame;
|
||||||
rigidBody.Velocity += speedUp * SpeedUpMultiplier;
|
rigidBody.Velocity += speedUp * SpeedUpMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class MovementBallBehaviour : BehaviourOverride
|
||||||
if (rigidBody.Velocity.MagnitudeSquared <= 0.01f)
|
if (rigidBody.Velocity.MagnitudeSquared <= 0.01f)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Vector2D speedUp = rigidBody.Velocity.Normalized * (float)Time.Elapsed.TotalMilliseconds;
|
Vector2D speedUp = rigidBody.Velocity.Normalized * Time.DeltaTimeFrame;
|
||||||
rigidBody.Velocity += speedUp * SpeedUpMultiplier;
|
rigidBody.Velocity += speedUp * SpeedUpMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue