WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 08-03-2004, 01:32 PM
tavaksai tavaksai is offline
Join Date: Jul 2004
Posts: 22
getting absolute rotation


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--

only seems to return the local rotation relative to parent.

This is possible for position with:

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)?

Reply With Quote
Old 08-03-2004, 01:40 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 02:21 AM.

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