WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Return distance covered by the viewpoint (https://forum.worldviz.com/showthread.php?t=5862)

zumbay 10-03-2016 03:32 AM

Return distance covered by the viewpoint
 
Hi,

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.

Thanks!

Jeff 10-03-2016 06:17 AM

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.

zumbay 10-06-2016 03:42 AM

thanks Jeff! worked the way you suggested!


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

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