public void AddObjRef(string baseId) { BaseGameObject baseObj = WorldData.GetObject(baseId); GameObjectReference objRef = new GameObjectReference(this.BaseObjectId, baseId); objRef.RefId = BaseObjectId + "_" + objRef.BaseObjectId + "_" + CellObjectRefs.Count; cellObjectRefs.Add(objRef.RefId, objRef); if (baseObj is Model) { PhysicsEngine.AddMeshToSpace(objRef, this); } }