WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
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


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


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing parent without changing absolute global position? The SundanceKid Vizard 2 05-23-2014 02:43 PM
Getting updated position Anastaggra Vizard 1 02-01-2014 12: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 07:28 AM
Getting Position Lynnifer Vizard 1 07-16-2012 09:49 AM
default start position erchrastil Vizard 2 06-23-2008 08:15 AM

All times are GMT -7. The time now is 05:54 AM.

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