Commit 46f81c4
Gizmo fixes and updates (#7946)
* fix: reverted regression using local angles instead of world angles for node rotation
* fix: update shape orientation calculation to use local euler angles for better alignment with camera view
* refactor: simplify visibility handling in ArcShape and update RotateGizmo to use setEulerAngles
* fix: update facing threshold constants for RotateGizmo and improve sector visibility logic
* fix: update GLANCE_EPSILON constant and adjust shape visibility logic in ScaleGizmo and TranslateGizmo
* fix: improve shape visibility logic in RotateGizmo for better state handling
* fix: trigger render update event in RotateGizmo after shape visibility changes
* fix: enhance triangle data caching in ArcShape for improved geometry updates
* fix: update TranslateGizmo to calculate point delta and reset node positions during transform events
* fix: rename pointDelta to translateDelta for clarity in TranslateGizmo position updates
* fix: rename pointDelta to scaleDelta for clarity in ScaleGizmo scaling logic
* feat: implemented basic ball roll rotation
* fix: refine rotation logic in RotateGizmo to handle axis-specific conditions
* fix: mark potential scale warping issue in RotateGizmo with a FIXME comment
* fix: reset depth to always render gizmos on top of each other
* fix: enhance type annotations and parameters for drawing span lines in TransformGizmo
* feat: add center radius control to RotateGizmo and update related properties in SphereShape and TranslateGizmo
* feat: override theme for xyz in rotate gizmo
* feat: refactor rendering in shape classes to use Mesh.fromGeometry for improved performance
* feat: add Mesh import to shape.js for future rendering enhancements
* feat: enhance SphereGeometry rendering with latitude and longitude bands
* Update src/extras/gizmo/translate-gizmo.js
Co-authored-by: Copilot <[email protected]>
* feat: add disabled color to gizmo shapes for better visual feedback
* refactor: remove unused rotation calculation and associated method from RotateGizmo
* refactor: remove unused Mat4 import and temporary variable from RotateGizmo
---------
Co-authored-by: Copilot <[email protected]>1 parent 64441b9 commit 46f81c4
File tree
15 files changed
+314
-199
lines changed- examples/src/examples/gizmos
- src/extras/gizmo
- shape
15 files changed
+314
-199
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
283 | 291 | | |
284 | 292 | | |
285 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| |||
0 commit comments