Physics engine revised