ludomotion / phantom

Entity Component based Game Engine for XNA 4.0 (or FNA/MonoGame)
14 stars 3 forks source link

Spawning two objects at the same location with physics results in position (NaN, NaN) #2

Closed jorisdormans closed 12 years ago

koenbollen commented 12 years ago

Can not reproduce, the following code snippet works:

Entity e1 = new Entity(Vector2.One * 10);
e1.AddComponent(new Mover(Vector2.Zero, .8f, 1f));
e1.AddComponent(new OABB(Vector2.One * 20));
e1.AddComponent(new ShapeRenderer(3, Color.Azure));
this.layer.AddComponent(e1);
e1 = new Entity(Vector2.One * 10);
e1.AddComponent(new Mover(Vector2.Zero, .8f, 1f));
e1.AddComponent(new OABB(Vector2.One * 10));
e1.AddComponent(new ShapeRenderer(3, Color.DarkRed));
this.layer.AddComponent(e1);