I am making a game where a character is supposed to stand on a hill (not a flat surface) next to a tree. When the user clicks on the tree, the character punches it. I have the punching animation imported as an rigged fbx. How do I go about
making the player collide with the ground (mesh colliders don’t work with skinned mesh renderer)
making the player punch the tree
align the player so that the player’s hands hit the tree so we can detect for collision
Not quite in the manner that the student would image but the principals taught there could be applied to this situation.
We use a navmesh to move around and so that solved the movement. A tree in no different to an enemy inside a game its just what you tell the code it is. If you say a tree is an enemy and your code allows you to attack and enemy he will attack the tree.
Aligning the player to face the target we also cover i believe with LookAt as well.
It seems that the best course to help you on this would be the RPG course. If you are not on a timescale then you may prefer to wait for the new updated content which will start releasing next week