WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 10-03-2016, 03:32 AM
zumbay zumbay is offline
Join Date: Oct 2016
Posts: 16
Return distance covered by the viewpoint


I am quite new to Vizard and thus far things have gone quite smoothly, but now I seem to be stuck at something which I couldn't find an answer to!

Is there a straight forward way of returning the distance a "player" has covered between two events/objects? Basically tracking how many meters were passed by the viewpoint? Something like:

start tracking
end tracking
return distance covered

I was searching quite a lot in the documentation/forum, but I am probably not using the proper keywords or terminology.

Reply With Quote
Old 10-03-2016, 06:17 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
You can get the distance between any two points using the vizmat.Distance command. To calculate the total distance covered you could register a function with vizact.ontimer that calculates distance over small time intervals and add those up.
Reply With Quote
Old 10-06-2016, 03:42 AM
zumbay zumbay is offline
Join Date: Oct 2016
Posts: 16
thanks Jeff! worked the way you suggested!
Reply With Quote

distance, viewpoint

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
Regarding Viconnect viewpoint rajnishv Precision Position Tracker (PPT) 3 03-20-2017 11:03 PM
purpose of distance parameter in setRenderWorldOverlay dcnieho Vizard 2 09-10-2016 05:27 AM
Regarding viewpoint with vizconfig,addFloatRangeItem&Storing viewpoint in PREFERENCES rajnishv Vizard 0 06-27-2016 03:57 AM
Intermittent orthographic stereo projection problems AySz88 Vizard 10 02-17-2012 12:50 PM

All times are GMT -7. The time now is 03:53 AM.

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