Double Fixtures

Topics: Developer Forum, User Forum
Jul 30, 2011 at 4:44 AM
Edited Jul 30, 2011 at 4:45 AM

First of all, I just wanted to quickly thank all the developers of this project. Your work is greatly appreciated.

I create a body and fixture in the following way:


mBody = BodyFactory.CreateRectangle(world, mDimension.X, mDimension.Y, 0, mStartPos);
mFixture = FixtureFactory.AttachRectangle(mDimension.X, mDimension.Y, 0, Vector2.Zero, mBody);


When I use the DebugViewXNA that came in the Samples project, I can see my body and fixture counts. For some reason, my fixture count is always twice that of the bodies. So if I have 15 bodies in the engine, there are 30 fixtures. This is the only place I create bodies/fixtures for the engine. Am I doing something incorrectly here? Anyone have any ideas?



Jul 30, 2011 at 4:48 AM


I promise I searched the forums before posting, but I missed the one post that contained the answer for me :P 

The BodyFactory creates the fixture automagically for you... so you don't need to create your own :)