Turning Multiball physics on/off with switch

Discuss problems and solutions.
Post Reply
rishi
Newbie
Posts: 9
Joined: 08 May 2012 12:22

Turning Multiball physics on/off with switch

Post 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
rishi
Newbie
Posts: 9
Joined: 08 May 2012 12:22

Re: Turning Multiball physics on/off with switch

Post 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);
Post Reply