adding helper functions a la pbox2d