Example #1
0
        private void MoveCameraToRepresentObj(int representObjPtr)
        {
            _AtlVector3 objPos = new _AtlVector3();

            EngineLayer.ATLBase.GetRepresentObjTranslation(representObjPtr, ref objPos);

            MoveCameraToPosition(objPos);

            //_AtlVector3 oldpos = new _AtlVector3(), oldlookat = new _AtlVector3();
            //SceneSceneEditor.GetCameraPosLookat(ref oldpos, ref oldlookat);
            //_AtlVector3 delta = new _AtlVector3();
            //delta.x = oldlookat.x - oldpos.x; delta.y = oldlookat.y - oldpos.y; delta.z = oldlookat.z - oldpos.z;
            //_AtlVector3 newpos = new _AtlVector3();
            //newpos.x = objPos.x - delta.x; newpos.y = objPos.y - delta.y; newpos.z = objPos.z - delta.z;
            //SceneSceneEditor.SetCameraPosLookat(ref newpos, ref objPos);

            SceneSceneEditor.UpdateSelectableEntityList(5);
        }