Page 1 of 1

isDetector Dynamic falls through terrain

Posted: Mon Jun 22, 2009 5:58 pm
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.

Re: isDetector Dynamic falls through terrain

Posted: Mon Jun 22, 2009 7:04 pm
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.