View Single Post
  #1  
Old 06-02-2005, 04:21 PM
vadrian vadrian is offline
Member
 
Join Date: Sep 2004
Posts: 32
looking at a point

i want to make an avatar look at an absolut point in space (e.g. have all the students in a class look at the teacher). avatar.lookat() makes the entire body point, while avatar.heatto() creates an animation using yaw/pitch/roll. i want this:
Code:
teacher = [2, 3, 4]
avatar.lookatpoint(teacher)

def lookatpoint(self, point):
    self._headbone = self.getbone('skel_Head')
    self._headbone.lock()
    self._headbone.lookat(point, viz.ABSOLUTE_WORLD)
this doesnt' seem to work, but i think you get the point. so how do i do this?
Reply With Quote