![]() |
|
|
|
#1
|
|||
|
|||
|
I tried putting a position point in the bonespinto function. This gives strange results. For example when I move the mainview to a position from where the avatar is visible and press spacebar the arm moves but not the the correct position.
Also after pressing spacebar a second time without moving the mainview the arm moves. Why is this, this shouldn't happen right? 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)
Can someone help me with this? Thank you! |
|
#2
|
|||
|
|||
|
I think the issue maybe that the center of the bone spins to the correct location but the bone center is not necessarily facing the same direction as the end of the bone, which is what you want in this case. It maybe necessary to calculate an offset for the spinto point or orientation. I'll check with a developer for suggestions.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Collision of an avatar with a quad | Frank Verberne | Vizard | 8 | 06-04-2008 10:44 AM |
| Looking through the eyes of an avatar | Frank Verberne | Vizard | 2 | 04-01-2008 06:52 AM |
| making a talking and imitating avatar | marc van gaal | Vizard | 9 | 10-20-2006 05:28 AM |
| Generating morphs when making new avatar heads.. | vjmcho | Vizard | 1 | 09-18-2006 03:36 PM |
| Making an avatar speak while performing an idling animation | vr_boyko | Vizard | 1 | 10-05-2004 05:23 PM |