transform.position - anotherTransform.position, what is this?

hi, i just want to know what will i get from this ( transform.position - anotherTransform.position) , is this equal the distance between the two positions or something? thnx :slight_smile:

1 Answer

1

You will get the distances from the two objects in the x, y, z.

Examples:
if transform.position is (200, 300, 500) and anotherTransform.position is (400, 100, 0).
You will take this:
(-200, 200, 500)