예제 #1
0
 private void Accelerate()
 {
     speed = rb.LinearVelocity.X * 3.6;
     if (speed < topSpeed)
     {
         rb.ApplyForce(Entity.Transform.WorldMatrix.Forward * engineForce * verticalInput);
         DebugText.Print("speed " + Math.Round(speed), new Int2(100, 200));
         if (speed < 0 && speed > -100)
         {
             DebugText.Print(Math.Abs(Math.Round(speed)) + " (R)", new Int2(100, 200));
         }
     }
 }