WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-14-2017, 12:32 PM
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
  #2  
Old 10-16-2017, 05:01 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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?
Reply With Quote
Reply

Tags
position

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


All times are GMT -7. The time now is 06:52 PM.


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