Skip to main content

Paint Pictures With Physics

Physical systems mimic the way objects around us react to each other - just think of bouncing balls and you've got it.

In computer games, physics is everywhere, making games more complex and realistic all the time, with Box2D being one of the more well-known physics libraries. Fortunately for us it's been ported to AS3, but while it takes a lot of the hard work out of 2D physics, it's still pretty complex.

Zevan Rosser's QuickBox2D sits on top of Box2D and makes it easier still, so we can just get stuck in without having to worry too much about the complexities of how the system works. We'll set up a simple system with QuickBox2D and paint its trails to a canvas, grabbing colours from a photo as we go and injecting energy into the system with the mouse.

Click here to download the support files (40.5MB)

Click here to download the tutorial for free

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of six full-time members of staff: Editor Kerrie Hughes, Deputy Editor Rosie Hilder, Deals Editor Beren Neale, Senior News Editor Daniel Piper, Digital Arts and Design Editor Ian Dean, and Staff Writer Amelia Bamsey, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.