How can i detect the distance between the black line and the top of the tree?

I am making a choppable tree but i dont know how i can detect the distance between the black line and the top of the tree. here is a video https://gyazo.com/2716ffd3ddcafee20955fa7c99318123

So if the top of the tree is a part, then use magnitude. If you mean getting the edge of the part that is the trunk, then you can get the size of the part in the Y axis, and then divide it by 2. Add it up with the trunk’s position and then use magnitude


Here is an example, the part’s position is the blue dot. And the size is the red line, so if you divide the size by half and then add both you can see how you would get the edge

1 Like

It worked, thanks for helping me