Hey everyone, so I’ve really been trying to figure this out on my own, but even after reading the manual and multiple forum posts, I still cant fully grasp all the available tools of Panda to really solve this issue.
So basically, the title explains exactly what I am trying to do. Here are the complications:
1.I have my camera offset from the character (x,y,z).
2. My camera is parented to a dummy node so that the dummy node rotates Pitch and Heading based off of where the mouse dictates the rotation.
3. My mouse is always set to “base.win.movePointer(0, self.mouseCenter, self.mouseCenter)”
Now, I would have thought this would actually be fairly simple, since even though my camera is pivoting everywhere, the Absolute Center of the screen is always (0,0); therefore, why does this thought process not work?
base.camLens.extrude(LPoint2f(0,0), nearPoint, farPoint)
in order to get the vector from the near viewpoint of the camera, to the far point, through the center. I could technically update a plane that always goes through the center of the screen as well then use .intersectsLine but I am not even sure why that would be necessary because I am not sure why the extrude logic is failing me. If you know of another forum post that could explain this logic to me, I would also appreciate that! Thank you in advance!