Unity Collision Hadlling

Hello,
I have a game wich there is an elevator and when the player stands up in the elevator that goes up he goes trew the collider i tried mesh colliders and box colliders.

I tried to warn you in your previous thread. You’ll need to add a rigidbody to the player and elevator and move them around with AddForce etc. I would probably use AddForce to move the player and MovePosition to move the elevator.

MeshColliders are 3D-physics yet you tagged this as 2D-physics.

You’ve not provided information any on your implementation so it’s impossible to tell you, only give you a lot of guesses. Please provide some implementation detail.

If the previous post is referring to this then you should know that you absolutely don’t modify the Transform to control physics objects. The Rigidbody2D does that, it’s part of its role. Use the Rigidbody2D API.

Also, that post is again using 3D physics (callbacks) not 2D physics.

I created a new topic for any confusion here is the link : Unity 3D collision handlling

1 Like

Note that the tag can be changed and I’ll do that for you too now.

Thanks for changing the tag ,
But the disscussion has gone more deeply in the other disscussion so I will not demande to rechange disscussion so nobody is lost.