To avoid this we can either place a floor underneath with a collider or set the gravity value attribute in the rigidbody component to 0.
Unity 2d floor.
One of the challenges i ran into was that when the player moved above a certain velocity it would sometimes pass through colliders.
This would lead to the player getting stuck inside the floor when landing a from a high jump.
As you already noticed unity provides many of these components in 2 versions for instance box collider 2d and box collider well the difference is the second one is for 3d.
Reboot 2020 50 off new assets for a diy do over.
Browse more 2d textures materials on the unity asset store.
Find the best 2d floors assets packs for your gaming project.
Elevate your workflow with the tile floor asset from casual2d.
Recently i have been working on a 2d platformer which uses the inbuilt unity physics and rigidbodies.
Reboot 2020 50 off new assets for a diy do over.
Elevate your workflow with the floor materials pack v 1 asset from vk gamedev.