All posts in Engineering

Simulating Grass Using Box2D

Someone asked if the FlexJoint introduced in a previous post could be used to simulate grass or other thin filaments.

Building off the existing framework, I will show an example of how it might be done.

Read more…

Simulating a Tree in Box2dWeb

Simulating a tree in Box2D is not as trivial as it sounds.

A tree will sway gently in the wind, spring back into shape after an impact, provide resistance, and break when enough force is applied.

Read more…

Box2Dweb Rope Joint

Box2Dweb is an excellent port of Box2D for Javascript. The only downside is that it’s based on 2.1. This means no rope joints!

Read more…