View Single Post
  #1  
Old 02-27-2009, 03:01 AM
omidbrb omidbrb is offline
Member
 
Join Date: Dec 2008
Posts: 27
Using bone.lookat for bones other than head

Hi!

Is it possible to use bone.lookat for bones other than the head? I use the following code to always point the hand towards an object but it stays perpendicular!

Code:
def lookAtBall():
	bone = avatar.getBone('Bip01 L Forearm')
	bone.lock();
	bone.lookat(ball.getPosition(),0,viz.ABS_GLOBAL)

vizact.ontimer(.5,lookAtBall)
Could you give me some hints why it's not working?

Best,
Omid

Last edited by omidbrb; 02-27-2009 at 03:06 AM.
Reply With Quote