CompoundCollision problem


03-05-2007 17:28:28

I'm rewriting the RigidBodyLoader in Python using Python Ogre and I have problems with CompoundCollision.

I don't know how to create the vector of Collision. I used:

collision_vector = OgreNewt.VectorofCollision()

( it creates some tempcol)

tempcol = OgreNewt.CompoundCollision( world, collision_vector )
rigidbody = OgreNewt.Body(world, tempcol)

but it produces RuntimeError: unidentifiable C++ exception

Ok I've solved the problem. It's because I haven't used the array of tempcol.