#1
|
|||
|
|||
getPosition() not displaying the correct position
Hello,
I created a 3D model in Sketchup, saved as .dae, opened in Vizard Inspector, named the objects, and saved it as .osgb, and loaded the model into my code in Vizard. Everything seems perfect, objects are loading correctly, but when I try to use getPosition(ABS_GLOBAL) on any object, it shows me the position [0,0,-0]. However if the object is grabbed and moved by the user, it shows the correct position (when I try to print it inside the event function). I have tried getPosition() with other parameters as well, but nothing is working. I even tried getting the matrix which also shows the matrix with zeroes. What should I do to get the correct initial position of objects? |
#2
|
|||
|
|||
I just tested getPosition with the ABS_GLOBAL flag on sub-parts of the model included with the sketchup to vizard tutorial files. This worked fine. Can you post example code that replicates the issue for you?
|
Tags |
position |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing parent without changing absolute global position? | The SundanceKid | Vizard | 2 | 05-23-2014 03:43 PM |
Getting updated position | Anastaggra | Vizard | 1 | 02-01-2014 01:15 AM |
How to pass only 1 axis of the position signal from the source to the dest in a LINK? | Zhi | Vizard | 2 | 04-04-2013 08:28 AM |
Getting Position | Lynnifer | Vizard | 1 | 07-16-2012 10:49 AM |
default start position | erchrastil | Vizard | 2 | 06-23-2008 09:15 AM |