public MyNavigationMesh(MyNavgroupLinks externalLinks, int trianglePrealloc = 16, Func <long> timestampFunction = null)
     : base(128, timestampFunction)
 {
     m_triPool       = new MyDynamicObjectPool <MyNavigationTriangle>(trianglePrealloc);
     m_mesh          = new MyWingedEdgeMesh();
     m_externalLinks = externalLinks;
 }
Esempio n. 2
0
 public MyNavigationMesh(MyNavgroupLinks externalLinks, int trianglePrealloc = 0x10, Func <long> timestampFunction = null) : base(0x80, timestampFunction)
 {
     this.m_vertexList    = new List <Vector3>();
     this.m_triPool       = new MyDynamicObjectPool <MyNavigationTriangle>(trianglePrealloc);
     this.m_mesh          = new MyWingedEdgeMesh();
     this.m_externalLinks = externalLinks;
 }
Esempio n. 3
0
 public MyHighLevelGroup(IMyNavigationGroup lowLevelPathfinding, MyNavgroupLinks links, Func <long> timestampFunction)
     : base(128, timestampFunction)
 {
     m_lowLevel           = lowLevelPathfinding;
     m_primitives         = new Dictionary <int, MyHighLevelPrimitive>();
     m_primitiveObservers = new Dictionary <int, List <IMyHighLevelPrimitiveObserver> >();
     m_links = links;
 }
Esempio n. 4
0
 public MyNavmeshCoordinator(MyDynamicObstacles obstacles)
 {
     m_links          = new MyNavgroupLinks();
     m_highLevelLinks = new MyNavgroupLinks();
     m_obstacles      = obstacles;
 }
Esempio n. 5
0
 public MyNavmeshCoordinator()
 {
     m_links          = new MyNavgroupLinks();
     m_highLevelLinks = new MyNavgroupLinks();
 }