Lower the vertex welding threshold, for removing duplicate/nearby vertices for soft bodies (this broke susanne softbody regression test)

This commit is contained in:
Erwin Coumans 2009-04-27 04:21:05 +00:00
parent f64265d714
commit d2ff190dfb
4 changed files with 4 additions and 4 deletions

@ -38,7 +38,7 @@
#include "KX_BlenderSceneConverter.h"
#include "KX_ConvertActuators.h"
#include "SND_Scene.h"
// Actuators
//SCA logiclibrary native logicbricks
#include "SCA_PropertyActuator.h"

@ -905,7 +905,7 @@ void KX_ConvertBulletObject( class KX_GameObject* gameobj,
// Soft bodies require welding. Only avoid remove doubles for non-soft bodies!
if (objprop->m_softbody)
shapeInfo->setVertexWeldingThreshold1(0.01f); //todo: expose this to the UI
shapeInfo->setVertexWeldingThreshold1(0.0001f); //todo: expose this to the UI
bm = shapeInfo->CreateBulletShape();
//no moving concave meshes, so don't bother calculating inertia

@ -34,7 +34,7 @@
#include "KX_Scene.h"
#include "MT_assert.h"
#include "SND_Scene.h"
#include "KX_KetsjiEngine.h"
#include "KX_BlenderMaterial.h"
#include "RAS_IPolygonMaterial.h"

@ -43,7 +43,7 @@
#include "SG_IObject.h"
#include "SCA_IScene.h"
#include "MT_Transform.h"
#include "SND_Scene.h"
#include "RAS_FramingManager.h"
#include "RAS_Rect.h"