Пример #1
0
        public bool ShiftObject(string name, float x, float y, float z)
        {
            if (_scene == null)
            {
                return(false);
            }

            warp_Object o = _scene.sceneobject(name);

            if (o == null)
            {
                return(false);
            }

            o.shift(x, y, z);

            return(true);
        }
Пример #2
0
        public bool TranslateModel(string name, float x, float y, float z)
        {
            if (_scene == null)
            {
                return(false);
            }

            Hashtable model = ( Hashtable )_models[name];

            if (model == null)
            {
                return(false);
            }

            foreach (DictionaryEntry myDE in model)
            {
                string      key = ( string )myDE.Key;
                warp_Object o   = ( warp_Object )myDE.Value;

                o.shift(x, y, z);
            }

            return(true);
        }