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 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. 3
0
 // constructor
 public tokenType(Object parentObject, LQProximityDatabase lqsd)
 {
     proxy = new lqClientProxy(parentObject);// lqInitClientProxy(proxy, parentObject);
     lq    = lqsd.lq;
 }
Esempio n. 4
0
 // constructor
 public tokenType(Object parentObject, LQProximityDatabase lqsd)
 {
     proxy = new lqClientProxy(parentObject);// lqInitClientProxy(proxy, parentObject);
     lq = lqsd.lq;
 }