Almost working physics implementation.