Jump to content

Prim Size


Cinder Darkheart
 Share

You are about to reply to a thread that has been inactive for 1635 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

never really tried to do this myself until now. And I'm not sure where to begin. What I'm trying to do is look at prim and get the size on one side from the center out. Basically half of the prim.  one side can be 3 meters out from the center and the other side 10 meters out. I'm thinking I might be in the right ball park not sure.

 

Using two prims for this using the script in a child prim the size get the basic size on an area.

        vector size = llGetScale();
        vector pos = llGetLocalPos();
        
        float sizex = (size.x/2) + (pos.x/2);
        float sizey = (size.x/2) + (pos.y/2);
        float sizez = (size.x/2) + (pos.z/2);
        
        llOwnerSay((string)sizex + " " + (string)sizey + " " + (string)sizez);

Edited by VirtualLink
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1635 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...