ape physics engine ported over to java