Hello! I used a
CollisionHandlerGravity for my game. But when I attached the camera to it, it isn’t working. I thought it only doesn’t work with camera, but every model I tried doesn’t get effected.
base.cTrav = CollisionTraverser() grav = CollisionHandlerGravity grav.gravity = 9.81 cNode = CollisionNode("camera") cNode.addSolid(CollisionRay(0, 0, 0, 0, 0, -1)) cameraC = base.camera.attachNewNode(cameraC) base.cTrav.addCollider(cameraC, grav)
But I get:
grav couldn’t find render/camera, disabling
(It is not exactly what I get. This is what I remember of the warning. I deleted the test program)