View Single Post
  #4  
Old 08-04-2017, 12:13 AM
krimble krimble is offline
Member
 
Join Date: Nov 2006
Location: Nijmegen
Posts: 63
I found that the boneSpinTo function has an option that allows to put in a position vector.
However this doesn't result in correct behaviour. It seems to point at a random direction.

I tried playing around with the different modes, with no succes.

Code:
import viz
viz.go()

point = vizact.boneSpinTo('Bip01 R UpperArm',mode=viz.AVATAR_WORLD,point=viz.MainView.getPosition(),speed=90)

#Add avatar
model = viz.add('vcc_female.cfg',euler=(180,0,0))

def mykeyboard(key):
	if key == " " :
		model.runAction(point)
		
viz.callback(viz.KEYBOARD_EVENT,mykeyboard)

How can I make my avatar point at a certain location and when done go back to it's original position?

Thank you!
Reply With Quote