-
Notifications
You must be signed in to change notification settings - Fork 2
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
Get handle position/rotation contraints from asset definition #24
Get handle position/rotation contraints from asset definition #24
Conversation
…slation and rotation for parts
It would be nice to have free rotation constraints for the axis slot, but the drawback is that after rotating the part the translation handles are no longer aligned with the parent. |
👍 |
👀 |
This goes clearly in the right direction. Nevertheless, I found issues (on purpose?):
=> I think the last 2 issues could be solved easily by adding another information in assets.json: which axis should be visible, for example: translationHandleVisibility: [false, false, true],
rotationGizmoVisibility: [false, false, false],
... |
In principle I agree, but then we should not show the x-y handles for the lego cross slot too. |
Just to be sure we are speaking about the same thing, for point 3, I'm speaking about the axle endSlot, when adding a wheel to it for example. In this case, it seems logical to be to be able to move the wheel on the z-axis only. Do you agree? |
Yes! |
…e is visible from the asset.json
I'm not sure to correctly understand what do you mean. I didn't change anything related to updates of the handles. |
Sorry for this, I didn't check on master. |
I checked different solutions, but at the end I think that the simpler to code and easier to understand for the user is to reset the selection and the gizmo when a part is removed. Note that the selection worked correctly, but not showing the gizmo for the selected object after a part remove could not be easily understandable for a user. |
👍 |
👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems very good to me. This is much more generic, and a good starting point to add more specific constraints.
Up-to-you, but renaming assets/assets.md
to assets/README.md
would allow to see this file in GitHub when browsing the assets
directory.
Addresses #7: remove hard-coded translation and rotation properties and get them from the asset definition.