Quantcast
Channel: Answers by "jack101"
Viewing all articles
Browse latest Browse all 4

Answer by jack101

$
0
0
Hi, I have no experience with mecanim but i do know a bit about animation. For this your character will need to have any necessary joints rigged in order to make them hinge and you will need a script to activate the animation once in contact with the ladder or wall. function OnCollisionEnter(theCollision : Collision){ if(theCollision.gameObject.name == "Wall"){ Animation.Play ("Climb"); } } // This is assuming the animation is called 'Climb' and the wall is called 'Wall' - Both without the quotation marks. This script will play the animation once you come in contact with the wall, to make the option to climb only after collision with the wall is out of reach of my coding capabilities (I'm only 13 and an amateur at coding). I can only help if you would like to use the animator in unity because thats all I know how to use but obviously you want to use mecanim so I'll let somebody else advise you on that. I hope this will help and I'm sorry I can't help with mecanim. I hope your game is successful and good luck!

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>