Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Farseer Physics move body


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 byrandomby   Members   -  Reputation: 104

Like
0Likes
Like

Posted 26 August 2012 - 12:22 AM

[source lang="vb"]Imports FarseerPhysics.DynamicsImports FarseerPhysics.FactoriesImports Microsoft.Xna.FrameworkModule Module1 Dim world As World Dim body As Body Dim WithEvents timer As New Timers.Timer(100) Sub Main() world = New World(Vector2.Zero) body = BodyFactory.CreateRectangle(world, 1, 1, 1) With body .BodyType = BodyType.Dynamic .LinearVelocity = New Vector2(10, 10) End With timer.Start() Console.ReadLine() End Sub Private Sub timertick() Handles timer.Elapsed world.Step(10) Console.WriteLine(body.Position.ToString) End SubEnd Module[/source]

The maximum speed of the body is 2 pixels per step, regardless of the velocity / step value.
Why is this so?

Sponsor:

#2 Opt7ons   Members   -  Reputation: 891

Like
0Likes
Like

Posted 27 August 2012 - 08:42 AM

Perhaps you have pixels mixed up with meters? Farseer uses Meters/Kilos/Seconds.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS