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