Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Weight (mass) in SL? How to measure it?

Jennifer Roundfield
Supersized Amazon
Join date: 7 Apr 2006
Posts: 176
05-04-2006 07:18
Is there a way to "weigh" something in SL, something like....an avatar?

I'm looking for a scale. I want to step on it and read my weight.

Of course there are assumptions, but as long as we know what most of them are, we can deal with it..

~Jenni~
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
05-04-2006 07:23
llGetObjectMass() - granted, that's mass, not weight.
Toy LaFollette
I eat paintchips
Join date: 11 Feb 2004
Posts: 2,359
05-04-2006 07:25
http://secondlife.com/badgeo/wakka.php?wakka=lindogram
_____________________
"So you see, my loyalty lies with Second Life, not with Linden Lab. Where I perceive the actions of Linden Lab to be in conflict with the best interests of Second Life, I side with Second Life."-Jacek
Jennifer Roundfield
Supersized Amazon
Join date: 7 Apr 2006
Posts: 176
05-04-2006 09:02
This is cool, now does any one have this embedded in a scale so non-scripters can use it? :o
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
05-04-2006 09:08
You could just put this in something
CODE

default
{
touch_start(integer n)
{
key id = llDetectedKey(0);
llSay(0, llKey2Name(id) + " has a mass of " + (string)llGetObjectMass(id) + " lindograms");
}
}

which would say someone's mass when they touched it. I suppose a scale that you stand on would probably have a "sit" command doing basically the same thing, but in a more complicated way, cancelling the sit animation, using a dial to display the mass and so on.
Jennifer Roundfield
Supersized Amazon
Join date: 7 Apr 2006
Posts: 176
05-09-2006 10:23
Thanks for the bit 'o script!!!

A friend put this script into a lovely cube with a skull on each face (LOL) and we all touched it.

We got numbers back (with the 100x multiplier) of like 159 kg, 179kg, 162 kg.

I know the kilo-lbs conversion, but the mass seems....low. A 20 kilo spread between a little pixie of a girl and me is just not right. She does have a lot of "attacements", but even so, it seems funky!

I'm gonna play with my shape and see what happens....

~Jenni~
Jennifer Roundfield
Supersized Amazon
Join date: 7 Apr 2006
Posts: 176
well, I may know a little more...
05-09-2006 10:29
from the wiki:

From: someone
Changing material type has no effect on density and therefore mass.
Hollowed prims tend to have less mass and twisted prims tend to have more mass but there are some oddities (see energy).
In linksets, the parent returns the sum of all the masses in the set, while the children return only their own.
Avatar mass isn't affected by attachments but will change depending on avatar height (but not fatness, thickness, muscle, etc). Attachments seem to adopt/report the avatar's weight.



So, an avatar's "weight" is only a function of height, not really mass or volume x density...

Oh well.....