sprite is not correctly to body

Jun 25, 2011 at 2:32 PM
Edited Jun 25, 2011 at 2:37 PM

I tried to make game like max and marker  .  I used mouse to draw body but my problem sometime ,it correctly  sometime not

it depend on shape 

Jun 25, 2011 at 2:38 PM
Edited Jun 25, 2011 at 2:40 PM

here it my code 

Jun 25, 2011 at 5:45 PM
Edited Jun 25, 2011 at 5:46 PM

i think it's because you use for the body the center of mass and for the texture new Vector2(width/2, height/2); or some kind of that (just tested it, not looked trought the code)

http://farseerphysics.codeplex.com/discussions/248532

Jun 25, 2011 at 6:04 PM

yes, i use body the center of mass .

but i did not understand How to solve this problem

regards

Jun 25, 2011 at 6:15 PM

look at the lnk :)