5
A
답변
6
controls.autoRotate = false;
그냥 '사실', 다음과 초기화에 시작 onMouseMove 같은 것을하십시오 :
if (controls.AutoRotate)
controls.autoRotate = false;
5
당신이 첫 번째 상호 작용 후 자동 회전을 멈추고 싶다면; 당신이 3 이벤트 OrbitControls 중 하나에 이벤트 리스너를 연결 수있는 것은 방출 :
: 사용자가 마지막으로 상호 작용을 종료 된 후 가// stop autorotate after the first interaction
controls.addEventListener('start', function(){
controls.autoRotate = false;
});
심지어 고급, 1000 밀리 초 타임 아웃, 자동 회전을 다시 시작
// stop autorotate after the first interaction
controls.addEventListener('start', function(){
clearTimeout(autorotateTimeout);
controls.autoRotate = false;
});
// restart autorotate after the last interaction & an idle time has passed
this.controls.addEventListener('end', function(){
autorotateTimeout = setTimeout(function(){
controls.autoRotate = true;
}, 1000);
});
감사합니다. 정말 고마워요. – n2g6t1q1