WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Question about angles (https://forum.worldviz.com/showthread.php?t=3044)

atamasan 10-24-2010 10:20 PM

Question about angles
 
Hello. I've written some questions and got many useful comments here, thanks a lot.

I have a question about angle.
Now, I am trying to get angle between 2 bones of 'hand.cfg'.
Especially, I want to get angle between 'bone little 4-0' and 'bone little 4-1' when grabbing object.

To do this, I'm using 'vizmat.QuatDiff' now.
Code:

bone1=hand.getBone('bone little 4-0')
bone2=hand.getBone('bone little 4-1')
bone1,bone2.lock()
.
.
.
print vizmat.QuatDiff(bone1.getQuat(),bone2.getQuat())

I could get a angle by this code. But I don't know if this code is wrong or not.
note:I want to know angle along Y AXIS in bone2's PARENT COORDINATE SYSTEM because this is main angle when human's hand grab something.

Should I use AxisAngle or something?
Please give me some advice and I am sorry for my English everytime.


All times are GMT -7. The time now is 01:57 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC