camera.useAutoRotationBehavior when I use detach methods to stop auto rotate, how can I restart rotate?


Once again i’ll point out that providing screenshots and asking a question in the title will not help us help you.

Reproduce on the playground (playground.babylonjs.com), explain exactly what you are doing, and then we might be able to help.

3 Likes

OK , this is playground https://playground.babylonjs.com/#W671DK#6

This is the default arc rotate behavior. When pointer down is triggered it stops and then starts after.
When you are recreating this behavior and detaching the behavior during a pointer down, the pointer up is not triggered in the behavior and is therefor blocking further execution.

So this:

test | Babylon.js Playground (babylonjs.com)

and this:

test | Babylon.js Playground (babylonjs.com)

work the same.

Note that the solution in #9 is using private variables and is not recommended.

1 Like

Thank you very much! This way resolve my problem , haha !