tizzle / aframe-orbit-controls-component

An Orbit Controls Component for A-Frame VR
https://tizzle.github.io/aframe-orbit-controls-component/
MIT License
74 stars 25 forks source link

minPolarAngle/maxPolarAngle Infinity possible? #38

Closed dirkk0 closed 6 years ago

dirkk0 commented 6 years ago

First of all: thanks for this plugin!

Then: I try to disable the Azimuth lock, to be able to freely rotate an object. I expected this to work, but it didn't:

          minPolarAngle: -Infinity;
          maxPolarAngle: Infinity;

Any ideas?

tizzle commented 6 years ago

Hey @dirkk0,

if i understand you correctly then what you are trying to achieve is not possible with Orbit Controls. This component takes a camera and moves it on a sphere around the target. The target object itself is not manipulated in any way. Due to the nature of the camera movement it will always feel different from freely rotating an object.

If you want object rotation with inertia, i fear you have to search elsewhere or roll your own solution.

Maybe i do not fully grasp what you're trying to achieve. If so, then please provide some more information what behaviour you expect.

Apart from that, i recommend you use this Orbit Controls lib instead, as it is far more performant.

dirkk0 commented 6 years ago

yes, you understood correctly - thanks for clarifying this! This was not a hard requirement, so it doesn't matter too much for my particular project. I look into Kevins Controls also, thanks for pointing this out.

Closing this.