Boxes not colliding with ground plane

I’m putting a link to the project here.
https://drive.google.com/open?id=0BxP0znA3qUfBOC13X2F5LVNqSFE

The issue is, I have several boxes in the scene. They have a rigidbody component and a box collider. I was just testing the physics in a simple scene.
The issue: Some fall and stop about a meter off the ground. Others stop halfway INTO the ground.

FYI, I do have one attached to my camera, so you move it around. That one isn’t an issue.

Anyway, just hoping someone can offer some insight why they don’t fall and collide with the ground plane correctly. The collider is not offset, and the plane collider has no offset either.
Thanks!

Your entities have both a static collider and a rigidbody. That doesn’t work. If you remove the static collider it will work as expected.

Then the other issue with “halfway into the ground” is because your cube model has an offset (its pivot is at the transform position). To fix this you can either change the model or add an offset to the collider shapes (having Y=0.5 for the box collider shape does the trick).

To help you better understand what’s happening, you should make sure that the physics gizmos are displayed in the scene editor: click on the button at the top right corner and check the “physics” box.

1 Like

And…it works like a charm! Thank you for looking at the project file and the excellent answer, Kryptos!

Glad I could help.
You can find more details on how the physics work in Xenko by visiting the documentation. If you feel something is missing don’t hesitate to give feedback on the documentation content itself. You can also improve the documentation with your own contribution.