Hacking Box2D Print
20 December 2009

I'm still working on my entry for the TIGSource compo. It allows me to really improve Scroll.

 

But also, it made me hack Box2D so as to support gravity on a per object basis. I also made a very ugly hack to allow tagged objects to not slide on 45°+ slopes if needed. All this is already submitted on the svn repository.

 

In the config file you can now find 2 new properties: AllowGroundSliding which defaults to true and CustomGravity which defaults to none, meaning the world gravity is used by default.

The custom gravity applied on an object can also be modified at runtime and I'll probably use it in my TIGSource entry. :)

Last Updated on Sunday, 20 December 2009 20:52