From 0fd1ebe726d45621a4afca60e98509fcd3d23c58 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Wed, 6 Dec 2023 17:55:48 +0300 Subject: [PATCH] trestset --- Game/Game1.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Game/Game1.cs b/Game/Game1.cs index ffa4763..ceef5ae 100644 --- a/Game/Game1.cs +++ b/Game/Game1.cs @@ -1,5 +1,5 @@ using System; - +using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; @@ -67,7 +67,7 @@ public class Game1 : Game gameObjectBall.BehaviourController.AddBehaviour(new Vector2(.1f, .01f), 500f); gameObjectBall.BehaviourController.AddBehaviour().Assign(spriteBall); gameObjectBall.BehaviourController.AddBehaviour().AABBLocal = new AABB(-Vector2.One * 512f * .5f, Vector2.One * 512f * .5f); - gameObjectBall = gameManager.InstantiateGameObject(); + // gameObjectBall = gameManager.InstantiateGameObject(); // gameObjectBall.Name = "Ball"; // gameObjectBall.Transform.Position = Vector2.UnitY * 30f; // gameObjectBall.Transform.Scale = new Vector2(1f / 51.2f, 1f / 51.2f); @@ -170,6 +170,7 @@ public class Game1 : Game { physicsTimer += 0.01f; engine.Step(.01f); + Console.WriteLine($"{physicsTimer} -> {gameObjectBall.Transform.Position}"); } } if (Keyboard.GetState().IsKeyDown(Keys.M)) @@ -179,6 +180,7 @@ public class Game1 : Game { physicsTimer -= 0.01f; engine.Step(-.01f); + Console.WriteLine($"{physicsTimer} -> {gameObjectBall.Transform.Position}"); } } if (Keyboard.GetState().IsKeyDown(Keys.Space))