Another newbie question.

Feb 8, 2008 at 2:18 AM
Hey all and thanks for making this great port..

I have been trying some simple stuff like creating functions for "AddBall" and "RemoveBall" but my program crashes when trying to remove a ball.

I think the problem is I don't fully understand the relationship between RigidBody, CollisionObject and maybe Constraints?

I simply do this to remove a ball:
world.RemoveRigidBody(activeBallsballsRemaining() - 1); (activeBalls is the array storing the RigidBodies).

Can anyone point me in a direction of a place for better understanding of these concepts and/or help me with my current problem?

The error occurs in _world.StepSimulation(1.0f / 60.0f, 1); but only sometimes!

Hope someone can help me!

Thanks in advance
- Peter

Contact me on messenger if you want: petervesti@hotmail.com
Apr 18, 2008 at 8:19 AM
Peter - You might be seeing a bug similar to this: http://www.codeplex.com/xnadevru/Thread/View.aspx?ThreadId=23663

In the BulletX samples/demos I've done I ended up just leaving bodies in the world (terrible & lazy I know, but hoped it'd just be temporary).