internal void RemoveChild(SmartTerrainTrackable removedChild)
 {
     if (this.mChildren.Contains(removedChild))
     {
         this.mChildren.Remove(removedChild);
     }
 }
 internal void AddChild(SmartTerrainTrackable newChild)
 {
     if (!this.mChildren.Contains(newChild))
     {
         this.mChildren.Add(newChild);
     }
 }
 protected SmartTerrainTrackableImpl(string name, int id, SmartTerrainTrackable parent) : base(name, id)
 {
     this.mMeshRevision = 0;
     this.Parent        = parent;
     this.mLocalPose    = new VuforiaManagerImpl.PoseData
     {
         orientation = Quaternion.identity,
         position    = Vector3.zero
     };
 }
Exemple #4
0
        private SmartTerrainTrackable FindSmartTerrainTrackable(int id)
        {
            SmartTerrainTrackable result = null;

            if (this.mSurfaces.ContainsKey(id))
            {
                result = this.mSurfaces[id];
            }
            else if (this.mProps.ContainsKey(id))
            {
                result = this.mProps[id];
            }
            return(result);
        }
Exemple #5
0
 public SurfaceImpl(int id, SmartTerrainTrackable parent) : base("SmartTerrain", id, parent)
 {
 }
Exemple #6
0
 public PropImpl(int id, SmartTerrainTrackable parent) : base("Prop", id, parent)
 {
 }