Boxes collision

I recorded a short video: http://www.youtube.com/watch?v=rzzMMiQvIiI

How to avoid that 3 things which has shown at the video ? I dont want these boxes warp like that

I assume you mean the jittering when the small box collides with stuff. That’s how collision works, it checks if something is in a boundary it shouldn’t be, and if it is, it pushes it out.

I’d say use a short raycast that when it collides with something, stops the cube in that direction. It didn’t seem to jitter when the collision occured on the bottom (and I assume the top as well), so in that case, you’d only need two raycast for left and right.

THX a lot man it works!!! I lost 5 days to figure this out :slight_smile: