# About transformControls shows drag distance tag

**URL:** <https://discourse.threejs.org/t/about-transformcontrols-shows-drag-distance-tag/68174>\
**Category:** Discussion\
**Tags:** transform-controls\
**Created:** [July 15, 2024, 4:30pm UTC](https://discourse.threejs.org/t/about-transformcontrols-shows-drag-distance-tag/68174 "2024-07-15T16:30:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lingme](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lingme/32/49889_2.png) [@lingme](https://discourse.threejs.org/u/lingme)\
**Post date:** [July 15, 2024, 4:30pm UTC](https://discourse.threejs.org/t/about-transformcontrols-shows-drag-distance-tag/68174/1 "2024-07-15T16:30:14Z")

</div>

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.

 ![微信图片_20240716002546](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/1/b/1b3776249c2c9b22af971adc322d0a4f52e07846.jpeg)  
 ![微信截图_20240716002601](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/8/2/82416a0da83ef0abd819e9968f6dc95785b4f21f.jpeg)

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 ?

---

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [July 15, 2024, 4:56pm UTC](https://discourse.threejs.org/t/about-transformcontrols-shows-drag-distance-tag/68174/2 "2024-07-15T16:56:16Z")

</div>

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](https://github.com/yomotsu/camera-controls). 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.

---

<div class="post-metadata">

**Author:** ![lingme](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lingme/32/49889_2.png) [@lingme](https://discourse.threejs.org/u/lingme)\
**Post date:** [July 15, 2024, 5:18pm UTC](https://discourse.threejs.org/t/about-transformcontrols-shows-drag-distance-tag/68174/3 "2024-07-15T17:18:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [July 15, 2024, 8:03pm UTC](https://discourse.threejs.org/t/about-transformcontrols-shows-drag-distance-tag/68174/4 "2024-07-15T20:03:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lingme](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lingme/32/49889_2.png) [@lingme](https://discourse.threejs.org/u/lingme)\
**Post date:** [July 15, 2024, 8:27pm UTC](https://discourse.threejs.org/t/about-transformcontrols-shows-drag-distance-tag/68174/5 "2024-07-15T20:27:37Z")

</div>

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