WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   getting absolute rotation (https://forum.worldviz.com/showthread.php?t=176)

tavaksai 08-03-2004 01:32 PM

getting absolute rotation
 
Hi,

I could not figure out by reading the documentation
how to get the absolute (realative to world) euler
angles of a child object that is attached to a parent object.

child = Left_fingertip1.add('box2.wrl')
--then rotate hand and fingers--
child.get(viz.EULER)

only seems to return the local rotation relative to parent.

This is possible for position with:
child.getpos(viz.ABSOLUTE_WORLD)

Also, is it possible to get the absolute rotation of child above
even if parent is a child node itself inside a vrml file (e.g. finger
node attached to palm node)?

Max

farshizzo 08-03-2004 01:40 PM

Hi Max,

The get command takes an optional 2nd argument. To get the absolute rotation you would pass viz.ABSOLUTE_WORLD as the 2nd argument. This will work with all return values and with any node, even children nodes inside a vrml file.


All times are GMT -7. The time now is 07:09 PM.

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