[name]

모바일 장치의 방향에 따라 카메라 방향을 조정하는 데 사용 됩니다.

예시

[example:misc_controls_deviceorientation misc / controls / deviceorientation ]

생성자

[name]( [param:Camera object] )

[page:Camera object]: 제어 할 카메라 객체 입니다.

새로운 [name] 객체를 생성합니다.

이벤트

change

컨트롤에 의해 카메라가 변환되면 실행합니다.

속성

[property:Number alphaOffset]

알파 값의 오프셋의 단위는 라디안 입니다. 초기값은 0으로 지정됩니다.

[property:Object deviceOrientation]

현재 deviceorientation 이벤트 객체입니다.

[property:Boolean enabled]

컨트롤의 활성화 여부를 지정합니다.

[property:Camera object]

제어 할 카메라입니다.

[property:Number screenOrientation]

장치의 실제 방향을 기준으로 뷰포트의 방향을 지정합니다(90도 단위 기준). 초기값은 *0* 입니다.

메소드

[method:null connect] ()

컨트롤의 이벤트 리스너에 추가한 다음 활성화 합니다.

[method:null disconnect] ()

컨트롤의 이벤트 리스너에 제거한 다음 비활성화 합니다.

[method:null dispose] ()

컨트롤을 더이상 필요하지 않을 경우 호출해야 합니다.

[method:null update] ()

컨트롤을 업데이트 합니다. 보통 애니메이션 루프에서 호출 됩니다.

Source

[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/controls/DeviceOrientationControls.js examples/jsm/controls/DeviceOrientationControls.js]