- Home /
This question was
closed Aug 29, 2015 at 12:40 AM by
getyour411 for the following reason:
Please search for topics like 'interact with terrain trees'
How to get the collided tree ?
Hi,
I can't figure out how to get which terrain's tree has been collided using a RaycastHit.
I know how to do that with specific objects in scene, but I don't know how to do that with terrain's trees. Assuming hit is my RaycastHit result, the hit.transform.name method gives me "Terrain" which is not helpful to find which tree exactly was collided.
Can anyone help me about this ? Thanks
Comment