def __loadCamera(self): """Only seperate for organisation, treat it as is part of __init__() . Load the camera & setup segmet & queue for detecting obstructions.""" #Don't rotate the target with the avatar. self.target.node().setEffect(P.CompassEffect.make(render)) camera.reparentTo(self.target) # Attach the camera to target. camera.setPos(0, -self.zoomLvl, 50) # Position the camera self.rotateCam(P.Point2(0, 0)) # Initialize gimbal clamps. self.Q = P.CollisionHandlerQueue() # New queue for camera. self.segment = fromCol( self.target, self.Q, P.CollisionSegment(P.Point3.zero(), camera.getPos(self.target)), P.BitMask32( CameraM)) #CameraM into segment between camera & target.