By toggling the staticMoving
property of your THREE.TrackballControls
to true
, you essentially disable damping. On the other hand, setting it to false
enables damping, allowing you to control the amount of damping effect with the dynamicDamingFactor
.
If you set a very small value, such as 0.02
, for the dynamic damping factor, you will immediately see the impact of this adjustment:
controls.staticMoving = false;
controls.dynamicDampingFactor = 0.02;
Witness the damping effect in action in this interactive demonstration.
In the provided fiddle, changing controls.staticMoving = true;
will result in the damping effect being disabled.
This damping effect can also be observed in other controls like THREE.OrbitControls
, where the corresponding properties are named enableDamping
and dampingFactor
. While these names may be more intuitive, the underlying effect remains consistent.
It's unfortunate that the API for these controls doesn't align perfectly, likely due to their status as "code examples" rather than integral components of the three.js framework.