Create a Box Full of Balls

28 views
Skip to first unread message

Rob McElroy

unread,
Sep 11, 2017, 7:52:53 PM9/11/17
to CoSpaces Scripting
Hey Coding folks

I want to create a box that is suspended in the air and full of balls that has a bottom that will open when a object is click upon and swings open on a hinge to drop the balls.  

Is this possible??

Rob

Benjamin Singh

unread,
Sep 12, 2017, 4:43:28 AM9/12/17
to CoSpaces Scripting
Hi Rob,

you can use some physics to do a similar thing. First create a box to hold the balls. Make sure that every part has physics enabled and is set to static.


Then create the balls and put them inside the box. Enable physics for them but don't set them to static.



Now you can create a button to click on and use some Blockly to open the door.



Link to example: https://cospac.es/jVf1


Benjamin




Reply all
Reply to author
Forward
0 new messages