The collider did not create a collision shape as it failed verification.

Hey guys so ive got a basic scene set up with 3 box sprites, when one collides i want to flip its rotation, however i keep getting the above error. i have been using unity for 4 years and never seen anything like this, im using 2D physics, anyone got any ideas?

code spinet

void OnCollisionEnter2D(Collision2D coll)
    {
        if (coll.transform.tag == "Wall")
        {
            transform.parent.localScale = new Vector3(-1, 0, 0);
        }
    }

i don’t have an issue with the code, i can see the transform being changed in editor, however my game object flys of screen and ignores everything to do with the rigidbody.

i have scaled everything up, down, 100x, 1000x, and even played around with the pixel to scale import settings in the same manner. No luck.

Thanks guys

Zak

I think the Vector3 should be Vector3(-1, 1, 1) instead.