View Single Post
  #2  
Old 04-17-2006, 12:38 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

It seems as though there is another transform below the child object, or the actual geometry of the child object is not centered around the origin. To check if there is a transform below the child object follow these steps:

1) Locate the model in the "Resource" view of your script in Vizard.
2) Right-click on the model and click "Properties"
3) Expand the items in the tree until you locate the child name
4) Transform nodes are represented by a yellow gear looking icon (see attached image) If there are any of these nodes below your child node then rotations may cause offsets.

The most practical solution is to call getchild on a node that doesn't have a transform below it. If this doesn't fix your problem, then that means the actual geometry data of your model is not centered around the origin. To fix this you will have to modify your model in some 3D editor.
Attached Images
 
Reply With Quote