Get the example: Fologram_RigidBodies.gh (322.6 KB)
Setup a rigid body collision simulation in grasshopper and create real time collisions in Fologram. This app will use a moveable Fologram object as a collision item to explode a brick wall apart in augmented reality. If you enjoy using the Kangaroo 2 Physics plugin for grasshopper, and want to learn about how you can use your AR objects as an input for your simulations, this is the perfect tool to get started with.
Kangaroo 2 is a powerful physics simulation in grasshopper, but usually real time input can only be controlled by sliders in grasshopper. This application makes use of Fologram’s interaction tools to use a live and moveable geometry as the main input for the physics simulation.
The example sets up a simple rigid body simulation that tests collisions between a red box and a curing brick wall. Whenever the red box collides with the brick wall, the bricks move away to avoid the collision, creating an explosion effect out of the wall. The red box is controlled entirely in the Fologram device, and the location and size of the explosions can be controlled by the users interaction with the box.
Want to check out some other examples using Fologram as an input for a live physics simulation? Check out our “Make a mixed reality physics simulation with Fologram in 5 simple steps” article to find out more!