提交 25bc88ab 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #10861 from WestLangley/dev-orbit

OrbitControls: added saveState() method
......@@ -96,6 +96,14 @@ THREE.OrbitControls = function ( object, domElement ) {
};
this.saveState = function () {
scope.target0.copy( scope.target );
scope.position0.copy( scope.object.position );
scope.zoom0 = scope.object.zoom;
};
this.reset = function () {
scope.target.copy( scope.target0 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册