In order to more properly map the shape of my model for collision purposes, I wrapped two collision spheres around it, like so:
modelCol = self.model.attachNewNode(CollisionNode('ModelCol'))
modelCol.node().addSolid(CollisionSphere(0, 0, .5, 1.1))
modelCol.node().addSolid(CollisionSphere(0, 0, -.5, 1.1))
This object needs to be a ‘from’ object, so I it added to my collision traverser. Now when I loop the generated collisions, it appears that the two spheres are colliding:
CollisionEntry:
from render/-ModelRoot/TopdriveCol
into render/-ModelRoot/TopdriveCol []
at 15 0 7.94
normal 0 0 -3
interior 15 0 9.2 (depth 1.26)
respect_prev_transform = 0
Perhaps my understanding of the collision system is wrong, but I was under the impression that collision solids in the same node could not collide with each other?
Any advice would be appreciated.
Thanks.