PDA

View Full Version : Position


parisa
08-04-2016, 12:43 PM
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