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

Closed

BodyID = 0

description

Hello I am just testing Farseer Physics and I have encountered a weird behavior I have got a timer which calls the Update method which then calls the world.Update method. But when I try to add a body while the loop runs sometimes the body is created with BodyId of 0 and then messes up with the collision detection. Has anyone encountered similiar behavior and knows how solve this?
Closed Aug 30, 2014 at 11:24 PM by genbox
The BodyID counter has been marked as thread static, which means it is now unique for each thread. If your problem persist, replicate it using the testbed project and post the code.

comments