I have a program I'm writing based off of a tutorial:
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
# Load the environment model.
self.environ = self.loader.loadModel("models/misc/rgbCube")
# Reparent the model to render.
self.environ.reparentTo(self.render)
# Apply scale and position transforms on the model.
self.environ.setScale(10, 10, 10)
self.environ.setPos(-8, 42, 0)
app = MyApp()
app.run()
And I want something like:
self.environ.rotate(axis to revolve on, rot in degrees)
I've searched extensively on google, and the only thing that even LOOKS like it will work was this: http://www.panda3d.org/manual/index.php/Position,_Rotation_and_Scale_Intervals And guess what! It didn't. Could you point me to a website that explaint Hpr in depth, or just explain it here? Thanks.