WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Position (https://forum.worldviz.com/showthread.php?t=5813)

parisa 08-04-2016 12:43 PM

Position
 
Hi everyone
I am new here and I have a Question:
I am navigating in Piazza using my keyboard. How can I ask vizard to return my position every second to me in [x y z] format and also like a drawing format? (like a picture of a path i took like GPS for example)
I would appreciate it if someone help me
Thank you

rajnishv 08-05-2016 03:32 AM

Hi Parisa,
You may use the "node3d.getPosition()" inside the Update(): fuction called every 0 seconds using the timer function:

Code:
def myPostion():
mynode.getPostion("co-ordinate system") #you may use ur viewpoint as mynode to get ur position.
vizact.timer(0,myPosition)
and to draw you may use pls c to the link:
http://docs.worldviz.com/vizard/Changing_on-the-fly.htm


Regards
Mr.Rajnish Vishwakarma


All times are GMT -7. The time now is 09:23 PM.

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