Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
luckystriike22 opened this issue May 29, 2024 · 1 comment
Open
4 tasks done
Labels
experimental Experimental feature feature New feature or request p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@luckystriike22
Copy link

luckystriike22 commented May 29, 2024

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:

  • A prop to enable a label showing the Vector3 for current mode (scale, position, rotation) or all at once.
  • When you shift + click the label, it copies the vector value to your clipboard.
  • Not sure yet where it should show, either at the bottom left corner or as an HTML component at the object’s center.

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

no_rotate.mov

Suggested solution

Features:

  • A prop to enable a label showing the Vector3 for current mode (scale, position, rotation) or all at once.
  • When you shift + click the label, it copies the vector value to your clipboard.
  • Not sure yet where it should show, either at the bottom left corner or as an HTML component at the object’s center.

Alternative

No response

Additional context

No response

Validations

@JaimeTorrealba JaimeTorrealba added feature New feature or request experimental Experimental feature p2-nice-to-have Not breaking anything but nice to have (priority) labels Sep 12, 2024
@JaimeTorrealba
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental Experimental feature feature New feature or request p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
Status: No status
Development

No branches or pull requests

2 participants