About transformControls shows drag distance tag

Hello everyone, my project encountered a requirement, which is to display the dragging distance. I found that TransformControls does not natively support this function, so I implemented this function, looks like this.


So I’m wondering if I can pull requests this feature to threejs so that everyone can enjoy it, and I think TransformControls should support this feature. So I’m thinking two questions.

  1. Does TransformControls need to have this feature ?
  2. Can I create a pull requests and will threejs accept this pull request ?

Welcome to this forum.

First a disclaimer - I’m not a Three.js developer, so I cannot speak on behalf of Three.js. I’m just a user.

As far as I can see how Three.js evolves, most likely such addition to TransformControls is better to be presented as a new customized controls on GitHub or NPMJS. I see that a lot of users may benefit from showing drag distance, but a lot of other users will not need it at all. So, I’d assume that this functionality is not enough to have it accepted as a Three.js addon.

In terms of functional completeness, you might also add showing angular distance (i.e. how much rotation is done) and scaling distance (i.e. how much scaling is done).

As a reference, have a look at CameraControls. It outperforms OrbitControls in terms of functionality and customizability, yet it is neither a part of the Three.sj core, nor a part of its addons.

Of course, I do not want to discourage you. This is only a personal opinion. Let’s see what other might say.

2 Likes

hello PavelBoytchev, thank you for your answer, which helped me think about this matter. I think what you said is very correct, because from the perspective of the threejs architecture, this feature may indeed be unnecessary. I will consider making it into an npm package.

2 Likes

Yup. I think it would make a good NPM package.

THREEJS maintainers are in a constant battle to keep the core library lean and mean, so that the core functionality stays fast and stays as small a download as possible.

2 Likes

Yes my friend, thank you very much for your opinion, I think it should be

1 Like