From ae9233a5b05ebfc925fd542afbdb3bb9220ed65c Mon Sep 17 00:00:00 2001 From: Kester Maddock Date: Sun, 11 Apr 2004 02:50:02 +0000 Subject: 1. Check material names passed to the physics engine (for collision sensors.) Consider: gameobj->getClientInfo()->m_auxilary_info = (matname ? (void*)(matname+2) : NULL); It works if matname is "MAblah", but not if matname is "". 2. Added constructor for struct RAS_CameraData. 3. Added initializers to the struct KX_ClientObjectInfo constructor 4. Collision sensors won't detect near sensors. 5. A stack of minor tweaks, adjusting whitespace, using ++it for stl stuff. --- source/gameengine/Ketsji/KX_GameObject.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/gameengine/Ketsji/KX_GameObject.cpp') diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index f49090acc0d..91ff9e62459 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -73,8 +73,7 @@ KX_GameObject::KX_GameObject( m_pPhysicsController1(NULL) { m_ignore_activity_culling = false; - m_pClient_info = new KX_ClientObjectInfo(this); - m_pClient_info->m_type = KX_ClientObjectInfo::ACTOR; + m_pClient_info = new KX_ClientObjectInfo(this, KX_ClientObjectInfo::ACTOR); m_pSGNode = new SG_Node(this,sgReplicationInfo,callbacks); // define the relationship between this node and it's parent. -- cgit v1.2.3