entity.applyForce() instead of directly setting entity.force. Also, renamed entity.onUpdate to entity.update.