collision detection 2d with animation's gameObject

HI how it is the collision detection with 2D? Because when tested on standard objects that scrip:

    `var prekazka = gameObject;
    function Start () {
    }
    function OnCollisionEnter2D(coll: Collision2D) {
    if (coll.gameObject.tag == "tag"){
    prekazka.transform.position.x = 80;
    }
    }`

all work fine, BUT when i use object with animation or “scrolling” script, collision detection cant work… how to use it? i making 2d gameI need to make objects move to that location in collision detection/enter/exit… Thanks

Weird… Did you use the Animator/Animation tool or did you manually script the entire animation? How is it handled?
This is very weird as I have had no problems with collisions and animations, as I do not believe they directly interact with each other :S

Do you have Animate Physics enabled on your Animation/Animator Component?