From 438d114f1ac3c8eaa4c1d9d8ffa31271a51c85e6 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 2 Dec 2006 22:25:47 +0000 Subject: - GEadded VSYNC for Mac OS X swapbuffers (can be easily undone by commenting out the #define WAIT_FOR_VSYNC 1 - GEdon't crash when attempting to add constraint on game objects without physics controller - GEimproved some physics -> graphics synchronization issues - small experiment with game engine timing to smooth framerate/reduce tearing --- source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp') diff --git a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp index 145b4eb4750..85075d6364c 100644 --- a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp +++ b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp @@ -999,6 +999,9 @@ void KX_ConvertBulletObject( class KX_GameObject* gameobj, { if (meshobj) { + bm = CreateBulletShapeFromMesh(meshobj,false); + ci.m_localInertiaTensor.setValue(0.f,0.f,0.f); + // assert(0); /* -- cgit v1.2.3