Example #1
0
 public override void Invoke(Vector3 p, GameObjectModel obj)
 {
     if (obj.GetLocationInfo(p, _locationInfo, _phaseShift))
     {
         _hitModel = obj;
     }
 }
Example #2
0
        public static GameObjectModel Create(GameObjectModelOwnerBase modelOwner)
        {
            GameObjectModel mdl = new GameObjectModel();

            if (!mdl.initialize(modelOwner))
            {
                return(null);
            }

            return(mdl);
        }
Example #3
0
 public bool contains(GameObjectModel mdl)
 {
     return(impl.contains(mdl));
 }
Example #4
0
 public void remove(GameObjectModel mdl)
 {
     impl.remove(mdl);
 }
Example #5
0
 public void insert(GameObjectModel mdl)
 {
     impl.insert(mdl);
 }
Example #6
0
 public virtual bool Invoke(Ray r, GameObjectModel obj, ref float distance)
 {
     return(false);
 }
Example #7
0
 public override bool Invoke(Ray r, GameObjectModel obj, ref float distance)
 {
     _didHit = obj.intersectRay(r, ref distance, true, _phases);
     return(_didHit);
 }
Example #8
0
 public virtual void Invoke(Vector3 point, GameObjectModel obj)
 {
 }