It is necessary that the object began to move to the given coordinates. Used for this HOTween v2 (DOTween), moved the team

transform.DOMove(Vector3 target, 1f); 

The problem is that it simply gives direction and speed, and any obstacle on the way simply flings it away, even if the weight is large. It is necessary to do something like this so that it receives an impulse and the right direction, but successfully stops with heavy obstacles. Physics to work normally. How to do it?

    1 answer 1

    I gave an approximate answer on your past question. Use a Vector3 structure or a transform object for this. You take a game object and specify it as a point where you need to keep the direction, with the help of rigidbody.AddForce(other.transform.position, ForceMode.Impulce); .

    Or add a spring effect. To do this, there are the necessary components in Add Component -> Physics -> ... For example SpringJoint .

    SpringJoint more about SpringJoint . https://docs.unity3d.com/Manual/class-SpringJoint.html