Hey all!
I am looking for some direction on a few mechanics. I have a 3d game, 3rd person view. I am able to walk around and I can even detect when I am near a tree and begin the chopping animation if I left click.
I think I am going about this incorrectly. There are a couple issues I have. The first issue is the tree does not know it is being chopped. The second issue is the direction my player is facing. I currently use a trigger with a tag to let the player know they are in the area of the tree. If the player left clicks the chopping animation starts. This even happens if the player has back up to the tree or is right next to it.
What would be better is if the tree they clicked on with the mouse was selected and the player had to be facing it to chop it. This would be the same with ore, rocks, etc.
Any tips or links to tutorials would be appreciated. I have looked at a lot of tutorials to try and combine different mechanics but am a bit lost.
Thanks!