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

Make a Circle becoming bigger

Topics: Developer Forum
Mar 16, 2011 at 2:03 PM
Edited Mar 17, 2011 at 1:26 PM

Hello all,


First of all, thank you so much for your engine :-)


Here is my problem.

I have afixture which is a Circle. I would like it to become bigger (from 0.1 radius to 8 for example).

I use a timer that change the radius of the fixture programatically.

For making collision working, I need to change the position (to force the utilisation of FindNewContacts of the ContactManager).

My problem is that sometimes, I have Debug.Assert warning with the FreeNode function of DynamicTree (0<_nodeCount)

I don't know what I need to do.

Here is my code :



_fixture.Shape.Radius += step;
_fixture.Body.Position = new Vector2(_fixture.Body.Position.X, _fixture.Body.Position.Y);


Please help me,





PS : sorry for my poor english :-(