Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Pedometer

Zeta Eizenstark
Registered User
Join date: 20 Aug 2008
Posts: 79
01-11-2010 08:07
Whats the best way to make one of this? Multiplying something to llVecMag(), using the agent events or what? Does it matter where the device would be worn, because I'm planning on putting it on the waist. Thank you for any help.
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
01-11-2010 09:09
I don't think it matters where you attach it. I'd also guess that llVecDist with a 1-second or so timer is probably the easiest way to keep track of how far somebody has traveled.

Are you concerned about walking vs flying?

Also, beware region changes and TPs. Probably want to find the speed that people generally move at (there's a 'limits' page on the wiki somewhere that might tell you) and just ignore position changes that don't seem reasonable.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Zeta Eizenstark
Registered User
Join date: 20 Aug 2008
Posts: 79
01-11-2010 09:34
Nah, i don't care about flying...i guess if your flying you might be using up a lot of calories as well lol. Thanks for advice