So, I’ve basically followed two of the tutorials which work in isolation, but not together.
How to move the camera: self.camrea.setHpr / self.camera.setQuat
panda3d.org/manual/index.php … the_Camera
(My code which copies this: github.com/doublereedkurt/roide … y#L224-239)
How to detect clicks:
panda3d.org/manual/index.php … 3D_Objects
(My code which copies this: github.com/doublereedkurt/roide … y#L100-142 )
Everything works, except that the CollisionRay seems to be “left behind” by the camera moves. I’m hoping someone more experienced with the scene graph can point out what I need to do.
Do I need to add a node-path above the camera that both the CollisionRay and camera are reparented to so that they move in synch? Should I be moving the CollissionRay and camera in parallel?
The really weird thing is that the built-in camera controls work fine. (I tried looking at how the default camera controls are implemented, but that seems to be in C++, so copying that didn’t seem like an option.) If anybody knows how the default camera controls are implemented, that would be helpful since they seem to work.
Thanks in advance for your help!