View Single Post
  #4  
Old 06-03-2005, 04:52 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Just create a global dummy node and then have a function that pretty much contains the code in the timer. Here's a cleaned up version of the sample code:
Code:
#You only need a single global dummy node
dummy = viz.add(viz.GROUP)

def lookatpoint(self, point):
	self._headbone = self.getbone('skel_Head')
	self._headbone.lock()
	dummy.translate(self._headbone.get(viz.POSITION,viz.ABSOLUTE_WORLD))
	dummy.lookat(point)
	self._headbone.rotatequat(dummy.get(viz.QUAT), viz.ABSOLUTE_WORLD)
Reply With Quote