Tresjs / cientos

Collection of useful helpers and fully functional, ready-made abstractions for TresJS
https://cientos.tresjs.org/
MIT License
288 stars 40 forks source link

[feat] TransformControl has a label showing it’s transform vector #434

Open luckystriike22 opened 5 months ago

luckystriike22 commented 5 months ago

Description

Currently, I am working on a project where I use TransformControl extensively to easily determine an object’s position. I can use console logs or TresLeches to show the current position, rotation, or scale of the object. Wouldn’t it be nice to have an optional reactive label displayed with the current mode value? When transform is the mode, it shows the Vector3 for the object’s position.

Features:

I have already made a small demo and can continue upon receiving the green light. ✅

https://github.com/Tresjs/cientos/assets/43521233/5375feb9-9bcf-4e8b-a877-8ec18cbab518

Suggested solution

Features:

Alternative

No response

Additional context

No response

Validations

JaimeTorrealba commented 2 months ago

I think this could be useful, feel free to open a PR when ready

My idea should be a prop called debug (since we have others similar in the ecosystem)

If any questions please feel free to contact me.