Greetings,
I’m trying to find/create a method for panda that allows me to return a rotation that looks along forward with the the head upwards along upwards
Something like this:
def LookRotation (forward, upwards):
# Look along forward with the head upwards along upwards
# Returns Quat
The animation in the video is actually a little more sophisticated than that demo, because the actor is also flexing his upper torso a bit to follow the target. To do this (in any engine) requires integration with the animation subsystem, which is considerably more complicated than simply rotating a joint around. You can do it in Panda, too, but you’ll need a fairly deep understanding of how animation, joints, and transforms work.
but that won’t work unless you first expose the parent joint of eveNeck (whatever it is) and reparent the self.eveNeck joint to that exposed node, so that the global transform is correct for self.eveNeck.