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

Feature Request #2

Open
logixworx opened this issue May 7, 2021 · 6 comments
Open

Feature Request #2

logixworx opened this issue May 7, 2021 · 6 comments

Comments

@logixworx
Copy link

logixworx commented May 7, 2021

Excellent widget set! I have a simple feature request.

For Slider 2d, I'd like to have a circle constraint on the center point. Draw a circle on the slider box and constrain the slider point inside the bounds of the circle.

Also for the range widget I'd also like the option of having a circle drawn inside the box. But no constraints on the range rect - I'd like a function that returns the intersection points between the range rect and circle.

@soufianekhiat
Copy link
Owner

I don't know if it's simple. Could you have an Quick sketch (even paint) to understand? Particulary for the range.

Could you describe a usecase?

@logixworx
Copy link
Author

I'm making a tool that lets the user configure and map the circular touchpads on a DIY VR controller.

control

@logixworx
Copy link
Author

I realized that I dont need a function that returns the intersection points - the touch range will never go outside the circle anyway. just need a circle drawn in the range box :)

@soufianekhiat
Copy link
Owner

I think for the first one that will be another widget like:
Slider2DEllipseConstrains or other naming.
And the second that could be an option as it's just visual.

@logixworx
Copy link
Author

yes - exactly :)

@logixworx
Copy link
Author

another widget that myself and others would find useful - angle adjustment. Drag a control point to adjust the difference between the current and new angle vectors.

control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants