unity get direction from one point to another

Code Example - unity get direction from one point to another

                
                        Vector3 dir = (objectB.transform.position - objectA.transform.position).normalized