How to stop falling through floors and colliders in unity recently i have been working on a 2d platformer which uses the inbuilt unity physics and rigidbodies.
Imported asset falls through floor unity.
It doesn t work.
Then added a rigid body the character fell through the plane i then added a mesh collider and attached the mesh for the character to the collider.
Model created in unity eg gameobject create object cube is not falling down in y axis.
Went to the character and created colliders and imported it as a humanoid.
He kept falling trough the 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 happens most often when you fall between the cracks on badly modeled joined terrain due to floating point rounding errors.
How to set up collision.
I added a terrain object and gave it a texture to make my floor.
I want my imported object should behave like one created in unity3d.
Sweet then i added a rigidbody to my dude and added gravity.
If your first person character falls through the floor of your game level you may need a terrain collider.
The mesh does not align correctly to the character the character fell through.
However my object falls through the floor.
I m using the official unity tutorial.
It keeps falling through the floor.
This will stop objects such as obj fbx max e.
On the object i added a rigidbody and it already has a box collider.
I want to make a bouncing ball effect.
I have not added rigidbody to the object.
I created a plane in unity.
If your floor really is a single solid object the next thing i d check is that the physics loop is running at a high enough frequency that the player can t fall too far into the object before the next tick.