Hi everybody,
I have this problem with roaming ralph
I create a simple plan, and I put ralph on it
self.environ = loader.loadModel("models/square")
prato=loader.loadTexture("img/prato.jpg")
self.environ.setTexture(prato)
self.environ.reparentTo(render)
self.environ.setPos(0, self.ENVDIST,0)
self.environ.setP(self.ENVP)
self.environ.setScale(self.ENVSCALE)
[...]
self.woody = Actor("models/ralph",
{"run":"models/ralph-run",
"walk":"models/ralph-walk"})
self.woody.reparentTo(self.environ)
self.woody.setScale(0.0005,0.0005,0.0005)
self.woody.setP(90)
I reparent ralph to my environment. Then I set his pitch to 90 in order to see him awake.
Now panda3d get confused and roll and head has the same result
this is what I see
what you see is the result of the performing of these commands
if(self.keys['woodyleft']==1):
self.woody.setH(self.woody.getH()+1)
if(self.keys['woodyright']==1):
self.woody.setH(self.woody.getH()-1)
he simply does not perform the head action, it seems to perform a rool. If I change the previous line with setR the result is exactly the same
thank you