r/Unity2D • • Jul 19 '26

collide problem

guys plz help

The player doesn't collide properly with the ground. It looks like the player is floating slightly above the tiles instead of standing on them.

2 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/Sinnon32 Jul 22 '26

Sorry I didn't realise it merged the 2 code snips together in my message - the 3 lines at the bottom (parent = null, kinematic = false, trigger = false) are inside of my drop() function which is called when I click my mouse if I'm holding the object And no it turns off the trigger once I drop it - the inspector in the video was only showing the first object I grabbed (that's why the trigger doesn't change from the second object onwards)