View Single Post
  #1  
Old 10-14-2017, 11:32 AM
Tooba Tooba is offline
Registered User
 
Join Date: Oct 2017
Posts: 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?
Reply With Quote