isDetector Dynamic falls through terrain

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
imtrobin
Posts: 101
Joined: Thu Jun 11, 2009 3:03 am

isDetector Dynamic falls through terrain

Post by imtrobin »

Hi

Reporting, I have a dynamic trigger (isDetector = true) box which lands on terrain, jitters for a while, then falls through. A video shows it best, xvid codec or use vlc player.

http://cyberversion.com/private/dynamictrigger.avi

My sim setup

Code: Select all

            space_ = new Space (new BEPUphysics.BroadPhases.DynamicBinaryHierarchy ()); //Create the world 

            space_.simulationSettings.gravity = new Vector3 (0, -9.81f, 0f); //If left unset, the default value is (0,0,0).

            space_.simulationSettings.timeScale = 1f; //If left unset, the default value is 1.
            space_.simulationSettings.iterations = 15; //If left unset, the default value is 15.
            //Fiddling with margins and position correction is one way to tune the engine for the specific game/simulation.
            space_.simulationSettings.defaultMargin = .04f;//Defaults to .04f
            space_.simulationSettings.defaultAllowedPenetration = .005f;//Defaults to .005f
            space_.simulationSettings.useSplitImpulsePositionCorrection = false; //Defaults to false.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: isDetector Dynamic falls through terrain

Post by Norbo »

The falling through part is intended behavior. Dynamic detectors differentiate themselves from nondetector dynamic entities by not responding to collision. The jittering you saw is probably the "rescue" functionality of the Terrain (rescueDepth) kicking in, trying to grab the entity and bring it back above the terrain. It shouldn't work on detectors since the detectors will never pull themselves above the terrain by colliding with it, but right now it does.
Post Reply