• Advertisement
Sign in to follow this  

Farseer Physics move body

This topic is 2030 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[source lang="vb"]Imports FarseerPhysics.Dynamics
Imports FarseerPhysics.Factories
Imports Microsoft.Xna.Framework

Module 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
End Sub

Private Sub timertick() Handles timer.Elapsed
End Sub
End Module[/source]

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

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement