Adding pickable objects during runtime

Thanks! I overlooked the fact that the position of the collision sphere is relative to the cube it’s attached to. It works now!

I set it to:

cSphere = CollisionSphere(Point3(0.5,0.5,0.5), 0.8)

So that the center of cSphere is at the center of the cube. The sphere is scaled along with the cube as well.

The code in your second reply doesn’t work as the interpreter says ‘attachCollisionSphere’ takes 8 arguments. Maybe I need an updated version of Panda. In any case, the repositioning of cSphere’s center point should be enough.

Thanks again!