I am trying to learn Python (and programming, actually) by reading some Python e-books, the Panda manual, and playing around with the samples in the Panda installation.
While I was editing the Roaming Ralph sample, I wanted to do a couple things (most of which are probably very easy to you guys):
Remap the keys to WSAD so it follows standard FPS controls and allow AD to strafe instead of rotate. All of this didn’t take me too long to figure out.
Change the camera perspective to isometric. This was a bit of trouble since I had no idea what HPR meant in terms of camera rotation but I think I got it to look right.
This is the tricky one. I want to rotate Ralph so that he is always facing the direction of the mouse cursor. I found this code by pro-rsoft: discourse.panda3d.org/viewtopic.php?t=5409. Most of the things in there I don’t understand. I tried looking through the ShowBase module for “Plane,” “Vec3,” “Point3,” and “CardMaker” but couldn’t find any reference to them. Could someone tell me what those are and, perhaps, comment pro-rsoft’s code?
Sorry if I sound newbish. Only got into programming a couple days ago.