Calculating mass

About advanced scenes, and the Thyme scripting language used in Algodoo.

Calculating mass

Postby Santtu » Tue Jun 21, 2011 8:21 pm

I dont know is this right topic, but anyway: I would like to know, how you could meter mass of an object to make something happen. Like: (e)=>{e.other.mass<4?{e.other.density:=0}:{}} I explained this litle strangely, but I hope somebody understood...
Like dolphins... With Laserbeams!

http://www.algodoo.com/algobox/profile.php?id=1575]
User avatar
Santtu
 
Posts: 5
Joined: Sat Jul 24, 2010 12:58 pm
Location: North Pole (or "Finland")

Re: Calculating mass

Postby TC42 » Tue Jun 21, 2011 8:35 pm

There is no e.other/geom.mass.

You would need to know the area of the object, so then you would have scene.my.objectarea * e.other.density

I think that this has been suggested before and asked about before, and I think Karatebrot had something that calculated mass...
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 6 guests