Esempio n. 1
0
        // constructor
        public LQProximityDatabase(Vector3 center, Vector3 dimensions, Vector3 divisions)
        {
            Vector3 halfsize = dimensions * 0.5f;
            Vector3 origin   = center - halfsize;

            lq = new LocationQueryDatabase(origin.x, origin.y, origin.z,
                                           dimensions.x, dimensions.y, dimensions.z,
                                           (int)System.Math.Round(divisions.x),
                                           (int)System.Math.Round(divisions.y),
                                           (int)System.Math.Round(divisions.z));
        }
Esempio n. 2
0
 // constructor
 public TokenType(ProximityDatabaseItem parentObject, LQProximityDatabase lqsd)
 {
     proxy = new LqClientProxy(parentObject);
     lq    = lqsd.lq;
 }