Commit 4c0db33
Add model dragging and resizing in XR headsets by controllers or hands (#4643)
* Add model dragging in XR headsets by controllers or hands
* fixed controller tranform
* clean up types
* raycast against placement box
* release right-side-up
* pass between controllers
* use hitBox
* start objects nearer
* AR mode switch
* fixed initial placement
* switch to quaternions
* fix shadow
* fix tests
* make second hand rotate
* added scaling
* addressing feedback
* fixed turning and added visuals
* added scale visual
* update line visibility
* fix memory leak
* addressing UXR feedback
* fix initial placement
* minor cleanup
* improve cleanup
* fix returning camera
* fix passing between hands
* make box more often visible
* weird format fix
---------
Co-authored-by: Emmett Lalish <[email protected]>1 parent ce88f65 commit 4c0db33
File tree
6 files changed
+362
-68
lines changed- packages/model-viewer/src
- test/features
- three-components
6 files changed
+362
-68
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
98 | 103 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
| 746 | + | |
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| |||
0 commit comments