Troubleshooting

Turning Multiball physics on/off with switch

Started by rishi on .

Sign in or create an account to join the conversation.

2 posts

Topic starter
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
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);