question (mass and velocity)
3 posts • Page 1 of 1
question (mass and velocity)
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
)
thanks in advance , orbitor
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
thanks in advance , orbitor
- orbitor
- Posts: 7
- Joined: Fri Feb 05, 2010 2:29 pm
Re: question (mass and velocity)
e.other.density
Oh and AFAIK, you can't alter an object's velocity through scripts once it is already created.
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.
-

RicH - [Funniest Person 2010]
- Posts: 2043
- Joined: Tue Sep 01, 2009 9:01 am
Re: question (mass and velocity)
With Method X Assigning the size to the Shape that you want to find's mass.
with This code
Will work.
with This code
- Code: Select all
e.this.controllerAcc = (e.other.size(0) * e.other.size(1) * e.other.density)
Will work.
-

Mystery - Posts: 2802
- Joined: Thu Sep 03, 2009 1:16 pm
- Location: Southern Australia
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests



