Buster Peel
Spat the dummy.
Join date: 7 Feb 2005
Posts: 1,242
|
05-08-2005 18:38
Is there an easy way to get the size of a complete linked object?
I want to calculate the bounding polygon <width, length, height> of the object that holds the script. No problem for a prim, but when the object is made up of a bunch of linked prims, I don't see a quick-n-easy way. Am I missing something?
Buster
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
05-08-2005 19:31
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
05-08-2005 22:38
What Jillian said. You can then easily mash the maximum and minimum values down easy enough: // Returns a list with two vectors: Minimum and Maximum, in that order. // The first two are useful if you're looking for exact points in space // However, if you want size, all you need is simple math.
list stuff = llGetBoundingBox(llGetKey()); vector size = llList2Vector(stuff,1) - llList2Vector(stuff,0);
_____________________
---
|
Buster Peel
Spat the dummy.
Join date: 7 Feb 2005
Posts: 1,242
|
05-12-2005 18:51
sheesh, couldn't find it by navigating the wiki home page https://secondlife.com/badgeo/wakka.php?wakka=HomePageShould this maybe appear under Primatives or some subtopic so that boobs like me could find it? (I could add it but I'm a little gunshy editing the wiki until I know LSL better)
|