提交 63d7d59b 编写于 作者: M Mr.doob

VRControls: Spaces to tabs. See #6286.

上级 e054100a
......@@ -49,37 +49,37 @@ THREE.VRControls = function ( object, callback ) {
this.update = function () {
for ( var i = 0; i < vrInputs.length; i++ ) {
for ( var i = 0; i < vrInputs.length; i++ ) {
var vrInput = vrInputs[ i ];
var vrInput = vrInputs[ i ];
var state = vrInput.getState();
var state = vrInput.getState();
if ( state.orientation !== null ) {
if ( state.orientation !== null ) {
object.quaternion.copy( state.orientation );
object.quaternion.copy( state.orientation );
}
}
if ( state.position !== null ) {
if ( state.position !== null ) {
object.position.copy( state.position ).multiplyScalar( scope.scale );
object.position.copy( state.position ).multiplyScalar( scope.scale );
}
}
}
}
};
this.zeroSensor = function () {
for ( var i = 0; i < vrInputs.length; i++ ) {
for ( var i = 0; i < vrInputs.length; i++ ) {
var vrInput = vrInputs[ i ];
var vrInput = vrInputs[ i ];
vrInput.zeroSensor();
vrInput.zeroSensor();
}
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册