CompoundCollision problem

tomek

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()

(...here it creates some tempcol)
collision_vector.append(tempcol)

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


but it produces RuntimeError: unidentifiable C++ exception

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