Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Samarin <nicks1987@bigmir.net>2010-06-16 04:23:24 +0400
committerNick Samarin <nicks1987@bigmir.net>2010-06-16 04:23:24 +0400
commit700c32e73833205830b062a13270e4a45668cad0 (patch)
treef8d684cdb2e487442cbff49abd8305e6f779a5d5 /source/gameengine/Ketsji/KX_GameObject.h
parent147e8d01ebd7b04d81e2094669d8bc9b0f005f19 (diff)
- registration obstacle in game object
- creation obstacle on object replication (including navmesh object) - creation object transform for navigation mesh directly from blender object instead of using SGNode world transform (because SGNode doesn't exists yet when building navmesh on ProcessReplica)
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.h')
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.h b/source/gameengine/Ketsji/KX_GameObject.h
index 625ff2609df..116230adc48 100644
--- a/source/gameengine/Ketsji/KX_GameObject.h
+++ b/source/gameengine/Ketsji/KX_GameObject.h
@@ -59,6 +59,7 @@ class KX_IPhysicsController;
class PHY_IGraphicController;
class PHY_IPhysicsEnvironment;
struct Object;
+struct KX_Obstacle;
#ifndef DISABLE_PYTHON
/* utility conversion function */
@@ -107,6 +108,8 @@ protected:
SG_Node* m_pSGNode;
MT_CmMatrix4x4 m_OpenGL_4x4Matrix;
+
+ KX_Obstacle* m_pObstacle;
public:
bool m_isDeformable;
@@ -790,12 +793,24 @@ public:
}
m_bSuspendDynamics = false;
}
+
+ void RegisterObstacle(KX_Obstacle* obstacle)
+ {
+ m_pObstacle = obstacle;
+ }
+ void UnregisterObstacle()
+ {
+ m_pObstacle = NULL;
+ }
+
+
KX_ClientObjectInfo* getClientInfo() { return m_pClient_info; }
CListValue* GetChildren();
CListValue* GetChildrenRecursive();
+
#ifndef DISABLE_PYTHON
/**
* @section Python interface functions.