Collisions moving objects

Hey again,
I have assigned each of my models a collision polygon and because of that I cannot clip through them like I used to. However, I can now ‘push’ them around the scene. Is there any way to keep the models static, so I can only bump into them?

1 Like

That’s very strange, because models are static by default unless you’ve added them as “from” solids to the pusher. Could you share some of the code that you’ve used to set up your collisions?

        bushNode = CollisionNode("bush")
        bushNode.addSolid(CollisionCapsule(0, 0, 0, 0, 0, 10, 0.2))
        bush = self.bush.attachNewNode(bushNode)
        self.pusher.addCollider(bush, self.bush)
        self.cTrav.addCollider(bush, self.pusher)

You’ve added your bush as a “from” object, and you’ve added it to the pusher as well. That tells Panda you want it to be pushed around.

Just remove both addCollider lines. “into” objects, that are part of the scene, should not be explicitly added to the traverser or the pusher.

1 Like

Thank you!