public void TestGravity() { Vec2F oldVelocity = physics.GetRawVelocity(); physics.UpdateVelocity(); Vec2F newVelocity = physics.GetRawVelocity(); Assert.Greater(oldVelocity.Y, newVelocity.Y); }
/// <summary> /// Moves the player around in with the given velocity and direction /// </summary> public void Move() { //Engage the thrusters Booster(); Entity.Shape.AsDynamicShape().Direction = physics.GetVelocity(); Entity.Shape.AsDynamicShape().Move(); physics.UpdateVelocity(); }