Exemple #1
0
 /// <summary> Check if this SG_HapticGlove is one of the "goal" objects; </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool IsTarget(SG_Grabable obj)
 {
     if (this.objectsToGet.Count > 0)
     {
         return(SG_DropZone.ListIndex(obj, this.objectsToGet) > -1);
     }
     return(true); //we can accept any kind of Object.
 }
Exemple #2
0
        /// <summary> Removes a specific object from this SenseGlove_DropZone </summary>
        /// <param name="grabable"></param>
        public virtual void RemoveObject(SG_Grabable grabable)
        {
            int objIndex = SG_DropZone.ListIndex(grabable, this.objectsInside);

            if (objIndex > -1)
            {
                this.RemoveObject(objIndex);
            }
        }
Exemple #3
0
 /// <summary> Check if this Object has already been detected. </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool IsDetected(SG_Grabable obj)
 {
     return(SG_DropZone.ListIndex(obj, this.objectsInside) > -1);
 }