Box falling through static mesh.

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
toaster
Posts: 14
Joined: Sat Mar 21, 2015 3:44 pm

Box falling through static mesh.

Post 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
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Box falling through static mesh.

Post 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?
toaster
Posts: 14
Joined: Sat Mar 21, 2015 3:44 pm

Re: Box falling through static mesh.

Post 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.
Post Reply