This project has moved and is read-only. For the latest updates, please go here.

Velocity limit?

Topics: User Forum
Sep 10, 2010 at 8:38 AM


My friend and I are making a game (similar to asteroids) using the farseer 3.0 physics engine. But we have run into a problem, we can't get our ship to move faster then 125 (looking at LinearVelocity). Is the velocity limited for a body or what have we done wrong? I haven't seen any info about this anywhere else ...

This is some code from our Update method in Game1:

if (keyboardState.IsKeyDown(Keys.W))
        Vector2.Transform(new Vector2(0.0f, -500.0f), Matrix.CreateRotationZ(ship.Rotation)), ship.Position);

If someone can tell us what we have done wrong we would become very happy. :)

Sep 10, 2010 at 11:38 AM

There is a setting inside Settings.cs called MaxTranslation. Take a look at it.