Bounce 2d (ignor Layer?)

Hey,

I’m new to Unity and do have a question (that’s why I’m here :P).

This should be 2D :wink:
So I’ve got a ball which is bouncing off a wall, sadly it bounces of in all 3 diretions and then is bounceing of the ground again and agian and again…

So I though, I could just put the ground in a seperat Layer and ignor this Layer…

Is this possible??
Or is there a bestter solution??

Thank you.

You should be able to freeze the axis you want on the rigidbody under constraints. Just do it in the inspector.

On the rigidbody via inspector, check Constraints/Freeze Position/Z