Tree Fall Direction

Hey all. I am working on a game where you can select a number of trees a la RTS style, click a button, and select a spot where those trees fall but wondering how to make a tree object fall in a vector3 positions direction. Any thoughts?

You mean like this?

Ray ray = Camera.main.ScreenPointToRay( Input.mousePosition );

tree.transform.rotation = Quaternion.LookRotation( ray.direction, Vector3.up );

This will make the tree’s forward Z-axis point along your ray from the camera. I have no idea which direction you want, so if you wanna provide more info or fiddle with the above code, you should be able to figure it out :slight_smile:

Hope this helps!