question (mass and velocity)

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

question (mass and velocity)

Postby orbitor » Fri Feb 05, 2010 2:36 pm

I got a question bout algodoo.

I want to script something using Mass and Speed.
stuf like e.other.mass doesn't work , so i want to ask you what the commands for these settings are

i only need the one for mass and the cmd for speed/X-velocity.

(so i can use them in oncolide scripts and stuff :P)

thanks in advance , orbitor
orbitor
 
Posts: 7
Joined: Fri Feb 05, 2010 2:29 pm

Re: question (mass and velocity)

Postby RicH » Fri Feb 05, 2010 2:38 pm

e.other.density

Oh and AFAIK, you can't alter an object's velocity through scripts once it is already created.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: question (mass and velocity)

Postby Mystery » Fri Feb 05, 2010 2:53 pm

With Method X Assigning the size to the Shape that you want to find's mass.
with This code
Code: Select all
e.this.controllerAcc = (e.other.size(0) * e.other.size(1) * e.other.density)

Will work.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 8 guests