- added debug line drawing in gameengine (handy for debugging physics problems)

- added #ifdef for a visual studio 8 crashing problems
- added scaling and tolerances to triangle meshes
This commit is contained in:
2005-07-27 09:30:53 +00:00
parent b8142515ce
commit 411123b250
23 changed files with 183 additions and 24 deletions

View File

@@ -78,6 +78,12 @@ static RAS_ICanvas* gp_Canvas = NULL;
static KX_Scene* gp_KetsjiScene = NULL;
static RAS_IRasterizer* gp_Rasterizer = NULL;
void KX_RasterizerDrawDebugLine(const MT_Vector3& from,const MT_Vector3& to,const MT_Vector3& color)
{
if (gp_Rasterizer)
gp_Rasterizer->DrawDebugLine(from,to,color);
}
/* Macro for building the keyboard translation */
//#define KX_MACRO_addToDict(dict, name) PyDict_SetItemString(dict, #name, PyInt_FromLong(SCA_IInputDevice::KX_##name))
#define KX_MACRO_addToDict(dict, name) PyDict_SetItemString(dict, #name, PyInt_FromLong(name))