• 3D
  • Rigidbody hovering above the ground

Hi,

currently I am experimenting a bit with RigidBody and the physics of objects.

Therefore I made 2 simple objects (a plate and a simple cube), created collision shape for them and attached each of them to a Rigidbody. The collision shapes match the meshes exactly.

I placed both objects in the air above another object with a collision shape (a large cube). When I start the game, they fall down as expected and intended. But they do not come to rest exactly on top of the large cube. Instead they are hovering a little bit above the cube.

What did I miss to make it more exact, so that the objects are placed actually on top of the cube?

Thanks a lot, Hjolldar.

Make sure there is no scaling on the collision objects. They always need to be set to 1, if you need a different size you can adjust the collision extents (not the scale).

Try enabling Debug > Visible Collision Shapes at the top of the editor then restart the project. This way, you can preview collision shapes' locations in the running project.

Yes, it was a problem with the scaling. Thanks for the hint, I am still learning, how things work... ;-)