- Home /
Initiate Animation
I have a ladder that I want to climb, I have a script and an animation designed to let me climb this but when I walk up to the ladder and collide with it nothing happens. This is my current script, is their anything else I can do to initiate the animation "Climbing Animation" once I come into contact with "Ladder Collider".
This is my current script:
#pragma strict
function Start () {
}
function Update () {
}
function OnCollisionEnter(info : Collision){
if (info.gameObject.name=="Ladder Collider"){
animation.Play ("Climbing");
}
}
Comment
How are you tagging your GO's? http://forum.unity3d.com/threads/play-animation-on-collide.111775/
Your answer
Follow this Question
Related Questions
Activating One Part of An Animation 2 Answers
play animation on keypress if in range 3 Answers
animation and sound on collide 1 Answer
How to stop animation on trigger? 1 Answer