Exemplo n.º 1
0
            public RobotEntity(SceneNode parentNode, SceneManager parentSceneManager)
            {
                _parentSceneManager = parentSceneManager;
                _parentNode         = parentNode;
                _nodeName           = _rootNodeName + RobotEntity.__currentId;
                _name = _rootName + RobotEntity.__currentId;

                RobotEntity.IncrementCurrentId();
                InitializeNode();
            }
Exemplo n.º 2
0
            public RobotEntity(SceneNode parentNode, SceneManager parentSceneManager, Vector3 vector)
            {
                _parentSceneManager = parentSceneManager;
                _parentNode         = parentNode;
                _nodeName           = _rootNodeName + RobotEntity.__currentId;
                _name = _rootName + RobotEntity.__currentId;

                RobotEntity.IncrementCurrentId();
                InitializeNode();

                this.Node.Translate(vector);
            }