-
Notifications
You must be signed in to change notification settings - Fork 51
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
Transform Gizmo Refactor #1085
base: dev
Are you sure you want to change the base?
Transform Gizmo Refactor #1085
Conversation
Need to implement elsewhere in the code and also delete old implementation
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.
Couple Issues:
Pressing enter when configuring the intake, ejector, or scoring zones makes the gizmo disappear
Spawning a robot, then deleting the assembly before pressing enter leaves the gizmo behind
🫠 |
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.
Looks like this has some pretty extensive merge conflicts from #1068.
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.
One more merge conflict. Other than that, looks good.
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.
I'm still not sure that this 100% addresses the concerns that @HunterBarclay had.
Yep I just added all the refactoring changes that I could remember |
WIP: Migrating scheme selection to a component atm.
WIP: Making a new panel combining input scheme selection and assembly transformation into one.
This feature also adds additional upgrades and refactoring to how pausing is handled. It adds the side-effect of when an assembly fails to be spawned in, the simulation will remain paused for approx. 500 ms. Also includes global UI controls that can be accessed from anywhere.
Also added in a couple cleanups here and there.
Also finally moved the ground up as well.
Co-authored-by: PepperLola <[email protected]>
Co-authored-by: PepperLola <[email protected]>
Also included some snapping controls.
WIP!: Currently not working for removing input schemes from deleted robots.
The TransformGizmoContro now contains callbacks for when it "receives" the signal to cancel or accept it's position via the escape and enter keys respectively.
Description
Refactoring the Transform Gizmos to be a
SceneObject
.Changes
GizmoSceneObject
file. This includes mapping transformations of the mesh to the mirabuf.SceneRenderer
Hunter's Additions
GlobalUIControls
andGlobalUIComponent
to provide access to context controls outside of react components. Probably not the best practice, but make sense considering these context controls will be relevant for the entire lifetime of the application, not just a single component/menu.GizmoSceneObject
are via theTransformGizmoControl
component. This allows were easy lifetime controls when using the gizmos.(0, 0 + half of bounding box height, 0)
anchored around the center of their bounding box.JIRA Issue