Page 1 of 1

Turning Multiball physics on/off with switch

Posted: 18 Jun 2013 01:54
by rishi
hi,

How do I get a multi-ball to respond to a physics / on/off button?

I can get the mulitball objects to respond to my 'global' physics controls of Attraction, Friction and Speed.




Thanks

Re: Turning Multiball physics on/off with switch

Posted: 18 Jun 2013 02:09
by rishi
Think I worked it out....

Added the following to the Action() for the switch. On Expression
setattribute(Multiball1, 'physic', x*2);
setattribute(Multiball2, 'physic', x*2);
setattribute(Multiball3, 'physic', x*2);
setattribute(Multiball4, 'physic', x*2);
setattribute(Multiball5, 'physic', x*2);
setattribute(Multiball6, 'physic', x*2);