Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Finding the distance in meters between 2 prims

Darkness Anubis
Registered User
Join date: 14 Jun 2004
Posts: 1,628
11-24-2005 17:36
I am working on a small project in which I need to be able to find the distance between 2 unlinked prims. Now I know how to get the position of each and how to send the position of one to the other. Where I am totally lost is how to figure out the straight line distance between them. Any light that can be shed on this subject will be greatly appreciated. :)
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
11-24-2005 17:38
llVecDist :)
_____________________
Prometheus Deckard
Registered User
Join date: 24 May 2005
Posts: 23
11-25-2005 09:58
llVecDist(otherpos, llGetPos());
October Brotherhood
Registered User
Join date: 24 Jun 2005
Posts: 70
11-25-2005 13:50
i was just comin here to ask this, thanks guys!