Gamepiece Asset Support [SYNTH-37] - #1393
Conversation
Co-authored-by: Azalea Colburn <62953415+azaleacolburn@users.noreply.github.com>
* 'dev' of github.com:Autodesk/synthesis: (86 commits) Improve styling of joint sequencing panel `[SYNTH-188]` (#1366) Snap Field Placement `[SYNTH-94]` (#1368) fix: inverted joystick control scheme add aria label to analytics decline button (#1367) Remove Electron Icons `[SYNTH-203]` (#1369) Fix Gamepad custom selection `[SYNTH-152]` (#1361) Increase Minimum Sphericity to 0.99 Sphere Game Piece Unit Tests Update ConfigureShotTrajectoryInterface.tsx Style Fixes style: fix fix: provide backup values to prevent crashing fix: remove move handle from modal headers feat: support transaltion + rotation; needed feedforward logic Style Fixes Disable Focus Selection on "None" and Field Style Fix Prevent Changing Mode while Focus is on a Field Biome Style Fixes Minor tootlip text improvement ...
cc332a7 to
bd4d54d
Compare
|
Should you be able to focus camera on a gamepiece? If so, the configure camera menu shows up as blank when focused and gamepieces are not included in the dropdown. (which they probably shouldn't be) |
Note: PR #1379 significantly reworks the camera selection panel, so if you do end up modifying it, expect merge conflicts. |
AlexD717
left a comment
There was a problem hiding this comment.
For some fields gamepieces appear a bit off of their starting location.
Ex, this is on dev for the 2023 field
And this is on this branch, with the gampieces being a bit off their starting locaiton (black cross)
For the 2025 field, the green balls spawn in the right location, but I don't think the coral (grey pipes) are spawning in properly.
Its supposed to look like this, with the green balls on top of the grey pipes
But there aren't any pipes at all
When looking at the field in slow motion, the grey pipes look to be starting to spawn (but spawning halfway in the ground), but then disappear (or fall through the ground) when the algae collides with them.
In addition, drag mode no longer works for gamepieces.
* 'dev' of github.com:Autodesk/synthesis: (96 commits) update in more places Make Zone Config Panel Pretty `[SYNTH-225]` (#1402) Fix Mirabuf Loader Tests Merge Assetpack Properly fix: re-render scoring zones after resetting preferences Fix Double Sliders on Manage Protected Zones Interface `[SYNTH-164]` (#1396) format move divider revert to dim green InputSchemeSelection: SchemeSelector: call useStateContext InputSchemeSelection: extract SchemeSelector component format LabelWithTooltip: handle props correctly InputSchemeSelection: SchemeSelector: handle props correctly remove unneeded block simplify jsx ternary StyledComponents: take props correctly don't call react components directly Switch All Icons to SynthesisIcon `[SYNTH-202]` (#1387) Update GH Action Versions `[SYNTH-108]` (#1389) ...
* 'dev' of github.com:Autodesk/synthesis: (140 commits) docs: merged duplicate doc that referenced solved issue fix: properly dispose of robot bounding meshes docs: remove stale reference docs: remove stale reference Remove Failing Multiplayer Test `[SYNTH-249]` (#1416) chore: turn off debug bounding boxes docs: update refcounted semantics for `PhysicsMaterial` objects fix: spawning new robots doesn't move the old ones' bounding boxes fix: oriented boxes are positioned correctly initially Add full asset loading tests `[SYNTH-242]` (#1413) chore: style chore: add conditional warning chore: de-clutter warnings chore: remove unused imports fix(mira tests): add mocks of newly used functions feat: add Accel to AHRS and velocity to Accel fix: make AHRS angles match real ones from javadoc flake: disable playwright setup (#1400) hotfix: update remaining old jolt references (#1414) fix: handle that error in a better way ...
* 'dev' of github.com:Autodesk/synthesis: (60 commits) fix: better comment pattern Don't Pause Audio on Mobile Chromium `[SYNTH-240]` (#1442) Hotfix scoreboard initial state `[SYNTH-276]` (#1445) feat: strip template comments and truncate pr body fix: file comments in a review no longer send twice biome: warn on useComponentExportOnlyModules biome: elevate naming lint to error multiplayer/types: resolve warnings from __ RobotDimensionsTracker: resolving lint warnings format: fix arrow function formatting ThemeProvider: resolve updating themeOptions warning resolve more naming issues UICallbacks: ignore __ function lints components/CommandPalette: temporarily ignore registryTick lint chore(deps): bump actions/upload-artifact from 4 to 7 chore(deps): bump actions/setup-python from 5 to 7 fix: rename v4 to uuidv4 feat: update progress bar incrementally during URDF part building fix: dismissals should now show dismiss message chore: removed some comments, reformatted ...
AlexD717
left a comment
There was a problem hiding this comment.
It appears that one of your most recent changes broke scoring zone scoring, as dragging a game piece inside of one no longer increases the score. Checking out to a slightly later version has it working.
* 'dev' of github.com:Autodesk/synthesis: fix: fallback to jolt mass if mass is 0 fix: asan test specific error with shape result fix: jolt memory issues in `ZoneSceneObject.ts` fix: coverage broke fix: correct reporters for actions fix: update build script to not modify submodule fix: test related missuse of jolt objects feat: asan build and test step fix(ui): right click shows descriptiveName fix: mirabuf mass override was a no-op fix(ui): cleaning import & safe type inferral fix(ui): adding name of robot on right click
* 'dev' of github.com:Autodesk/synthesis: (180 commits) Fix Drag Mode During Gizmo Move (#1480) chore: remove unneeded jsx fragments (#1474) Update Tabs Indicator on Content Size Change (#1428) Fix Configuration Input Selection (#1460) style: ran formatter Improved 2024 Field Collisions fix: make cancelling work and make endgame reset fix: use start time delay for autonomous feat: make match mode timer time-based feat: improve match result modal styling refactor: use null instead of explicit fallback value for camera selection refactor: use string UUIDs instead of incrementing integers fix: update array bracket formatting chore: refactor out new build parts functionality chore: update comments feat: obj mesh reduction fix feat: glTF dense meshes extra rung feat: mesh decimation for obj and gltf chore: update comments chore: cleanup comments ...
Dhruv-0-Arora
left a comment
There was a problem hiding this comment.
Gamepieces currently do not stop when you push them around but rather continue oscillating.
No friction?



A lesson in scope creep. Big thanks to @azaleacolburn for doing most of the work for me.
Task
SYNTH-37
Resolves #1190.
Symptom
Gamepieces are inherently attached to fields. As such, they could not be moved or spawned in isolation.
Solution
Separate the logic such that
PIECESbecomes its own asset type. Configurable and spawnable by themselves.Verification
No regression on old fields, gamepieces from previous fields are able to be managed, moved, removed, added, and cached all separately from a field.
Before merging, ensure the following criteria are met: