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

Disable physics per object?

Topics: Developer Forum
Mar 15, 2007 at 10:43 PM
Is there a way to temporarily disable physics calculations for an object? This would be useful for moving an object around the screen or animating it manually.
Mar 16, 2007 at 5:20 PM
There should be an enabled property. I don't have my code infront of me at the moment, but I can't imagine not having the ability to disable a body.
Mar 16, 2007 at 9:26 PM
Edited Mar 19, 2007 at 5:13 PM
Thanks. I kinda feel stupid now 'cause it's real obvious. That's what I get for trying to figure things out in my head without looking at the code. I think I thought Farseer updated automatically or something.

It was the IsStatic property, in case anyone has the same problem. You may also want to set the velocities to 0 depending on what you're doing.