Drag a body to follow the mouse
Source files can be found here: Link Often we have a requirement where the b2Body is to be dragged by the user. This can easily be accomplished using a b2MouseJoint. Sample code shows how the joint is...
View ArticleUsing swipe to flick a body
A few days back, a reader ( Chris ) wanted to know how to flick a body using a swipe. So i created a sample for him that uses swipe variables to flick the body in the given direction. Frist we will...
View ArticleHow to make a Balloon (goes against gravity)
A reader on my blog by the name of Dillion presented a problem where an air balloon has to travel up against the force of gravity. There can be multiple approaches to the problem. However, we will...
View Article
More Pages to Explore .....