Physics engine for D