Page 1 of 1

Box falling through static mesh.

Posted: Fri Apr 03, 2015 2:37 pm
by toaster
I have a box that is falling through a static mesh I believe this is due to my gravity being set really high(60). If I have the gravity set lower it does not fall through the static mesh.

The character controller works fine and has proper collisions with the static mesh. Here are the boxes properties:

Code: Select all

            Box PhysicsBox = new Box(new BEPUutilities.Vector3(2, 10, 2), .5f, .5f, .5f, 5);
            PhysicsBox.CollisionInformation.Shape.CollisionMargin = .1f;
            PhysicsBox.PositionUpdateMode = PositionUpdateMode.Continuous;
Any help would be appreciated!

Thanks,
-Toaster

Re: Box falling through static mesh.

Posted: Fri Apr 03, 2015 6:54 pm
by Norbo
I am unable to replicate the behavior in the latest BEPUphysicsDemos with those settings. Could you modify a demo to show the issue and paste the code for me?

Re: Box falling through static mesh.

Posted: Sat Apr 04, 2015 2:39 pm
by toaster
The static mesh was not generated yet, or rather had finished generating when the mesh touched or penetrated with the ground so the box fell through. Somehow the character controller, although at the same starting height as the box, did not. If I waited until it was generated there was no issue. Silly mistake on my part.