void FixedUpdate() { Vector3 direction = target.position - transform.position; if (isUnidimentional) { direction.y = direction.z = 0; } if (usedModel != null) { usedModel.PhysicsUpdate(direction, this); } }