Commit graph

138 commits

Author SHA1 Message Date
David Rowe
d4b872d9e1 Detect button press 2017-07-26 22:30:52 +12:00
David Rowe
3566609173 Highlight button as it is hovered 2017-07-26 21:34:13 +12:00
David Rowe
8dceb3cc6c Show laser dot on UI even if trigger isn't squeezed 2017-07-26 17:26:43 +12:00
David Rowe
0f2176127e Fix locations of dominant hand settings and update setup 2017-07-26 15:41:16 +12:00
David Rowe
bf69402219 Laser intersect but don't highlight non-editable entities 2017-07-26 15:31:54 +12:00
David Rowe
72e3c9a881 Insert UI handling between input updates and editor actions 2017-07-24 16:59:34 +12:00
David Rowe
51522edd94 Separate out input objects from editor object 2017-07-24 16:32:10 +12:00
David Rowe
1f244fb487 Better way of handling grip click 2017-07-24 15:25:00 +12:00
David Rowe
4353400d23 Fix null state transition 2017-07-22 17:55:00 +12:00
David Rowe
a7f7a2c401 Add representative Tool menu UI elements 2017-07-22 17:47:49 +12:00
David Rowe
9cb8aea4fd Make grip click delete selection 2017-07-22 13:06:15 +12:00
David Rowe
44fe60ddda Stub dominant hand setting support 2017-07-22 11:47:14 +12:00
David Rowe
233655b76b Split script into multiple files 2017-07-22 11:20:17 +12:00
David Rowe
7e4e68ccf9 Fix highlight overlay sometimes being out of position 2017-07-21 14:52:24 +12:00
David Rowe
f858abcf7c Resume app from idle state 2017-07-21 14:31:15 +12:00
David Rowe
218b13b0e9 Turn off laser when grabbing or scaling with hand 2017-07-21 14:17:50 +12:00
David Rowe
1434f98dab Fix multi-selection scale handles box after toggling while grabbed 2017-07-21 13:49:26 +12:00
David Rowe
cf51c546d3 Fix direct scaling scale and position 2017-07-21 13:43:20 +12:00
David Rowe
e09113fef5 Fix handle scaling down to very small dimensions 2017-07-21 13:18:10 +12:00
David Rowe
e2cace2372 Fix laser not turning off when lose controller tracking 2017-07-20 22:29:13 +12:00
David Rowe
da97662ee1 Make hovered handles brighter 2017-07-20 22:23:48 +12:00
David Rowe
1009b67600 Fix unhandled state condition 2017-07-20 21:38:03 +12:00
David Rowe
3b966072a3 Fix grabbing a handle without hovering entity beforehand 2017-07-20 21:30:39 +12:00
David Rowe
571d10fa89 Improve editor state update code 2017-07-20 21:05:21 +12:00
David Rowe
880a711d2b Prevent invalid direct / handle scaling transition while scaling 2017-07-20 18:36:02 +12:00
David Rowe
5551bb70d4 Disable collisions and dynamic behavior while entities are being moved 2017-07-20 18:33:23 +12:00
David Rowe
2bd3f87d73 Tidying 2017-07-19 18:11:45 +12:00
David Rowe
e4123070c4 Add handle scaling of multiple entities 2017-07-19 18:10:39 +12:00
David Rowe
f1fd6264f3 Fix handle scaling entity with non-center registration point 2017-07-19 17:51:36 +12:00
David Rowe
5cb5c71966 Avoid bounding box center calcs 2017-07-19 16:33:05 +12:00
David Rowe
ce6e711f2d Fix old scale handles displaying when switch hands 2017-07-19 12:12:20 +12:00
David Rowe
0f64da23bd Improve debug 2017-07-19 12:09:52 +12:00
David Rowe
4c98cd26a4 Fix corner handle scaling 2017-07-18 20:48:16 +12:00
David Rowe
3d69e240a9 Fix entity losing previous scale when resume direct scaling 2017-07-18 20:29:41 +12:00
David Rowe
485190456d Update handles when scale 2017-07-18 20:29:02 +12:00
David Rowe
718d7a1120 Scale with handles first pass 2017-07-18 16:59:54 +12:00
David Rowe
74dccace6a Grab handles state while scaling with handles 2017-07-17 21:57:32 +12:00
David Rowe
22422f3059 Scaling with handles state and transitions 2017-07-17 21:29:37 +12:00
David Rowe
cb894ccbcb Display and hover sizing handles 2017-07-17 18:02:35 +12:00
David Rowe
1ad3041bae Direct scaling 2017-07-17 15:33:39 +12:00
David Rowe
7b3956df28 Grabbing state 2017-07-17 12:05:36 +12:00
David Rowe
cb827d9e85 Idle, searching, and highlighting states 2017-07-17 11:10:50 +12:00
David Rowe
ae1b6e20f2 Clear out state code for rework 2017-07-17 09:20:38 +12:00
David Rowe
c422eaec11 Move laser functionality into Laser object 2017-07-14 18:12:13 +12:00
David Rowe
35e8e7762f Move hand intersection into Hand object 2017-07-14 15:35:03 +12:00
David Rowe
2acb7335f1 Move hand functionality into new Hand object 2017-07-14 14:37:54 +12:00
David Rowe
0506f516d4 Rename Hand to Editor 2017-07-14 12:54:08 +12:00
David Rowe
85c5b8778a Simplify left/right side value handling 2017-07-14 12:45:19 +12:00
David Rowe
ee21797fcd Simplify scale-with-handles state handling 2017-07-14 12:22:21 +12:00
David Rowe
7933280d03 Clear highlights etc. when turn application off 2017-07-14 12:08:22 +12:00
David Rowe
ab6e278a48 Intersect and hover overlay handles with laser 2017-07-13 17:01:56 +12:00
David Rowe
9cbde6d99e Hover intersected handle 2017-07-13 15:05:04 +12:00
David Rowe
e644aabaf7 Intersect overlays with hands 2017-07-13 15:04:25 +12:00
David Rowe
23ebb791e8 Fix don't scale with hands if scaling multiple entities with handles 2017-07-12 19:22:08 +12:00
David Rowe
1fc2d7ed1b Display corner scale handles 2017-07-12 18:44:08 +12:00
David Rowe
972cf1a1be Size handles to compensate for physical distance 2017-07-12 16:11:59 +12:00
David Rowe
2c3cd53f8d Display face scale handles only for single entities 2017-07-12 15:30:13 +12:00
David Rowe
850b94220f Display face scale handles 2017-07-12 15:22:44 +12:00
David Rowe
196f5a43b1 Don't scale with hands if scaling with handles 2017-07-12 12:18:59 +12:00
David Rowe
db37417ccd Tidying 2017-07-12 11:15:55 +12:00
David Rowe
68cdc23530 Display selection bounding box for scaling with handles 2017-07-12 11:04:02 +12:00
David Rowe
657ac1aaeb Fix enumeration of entity tree 2017-07-11 21:16:21 +12:00
David Rowe
3450d64bed Hover with "scale" color if in scale-with-handles mode 2017-07-11 17:37:09 +12:00
David Rowe
ed3c0cdced Use grip click to toggle scale-with-hands / scale-with-handles 2017-07-11 17:16:38 +12:00
David Rowe
e8d8a5c0a2 Rotate entity selection while scaling 2017-07-08 12:27:48 +12:00
David Rowe
73c6414f93 Natural scale of entity selection with hands / lasers 2017-07-08 12:07:20 +12:00
David Rowe
a35d5fe128 Different color highlight for about-to-scale 2017-07-07 15:49:52 +12:00
David Rowe
5da8fe19de Fix highlights not moving when entities being moved by other hand 2017-07-07 15:10:07 +12:00
David Rowe
998d27d66d Logic and stub for grab versus scale 2017-07-07 15:06:18 +12:00
David Rowe
0ba11ffdc9 Make each hand aware of other 2017-07-07 14:51:20 +12:00
David Rowe
cab2caaf27 Apply edit and highlight after calculating both hands' inputs 2017-07-07 14:45:49 +12:00
David Rowe
c2159bc52a Fix laser not disappearing when lose hand tracking 2017-07-06 16:44:58 +12:00
David Rowe
b042f8615b Fix highlight position for entity with non-center registration point 2017-07-06 16:36:22 +12:00
David Rowe
3e96df5436 Precalculate laser sphere bright color 2017-07-06 16:24:15 +12:00
David Rowe
72529cf90b Highlight hand when it intersects an entity 2017-07-06 10:49:17 +12:00
David Rowe
38e7ee3096 Hover and select entities that hand intersects 2017-07-05 22:38:59 +12:00
David Rowe
e6e619f0d8 Hover only editable entities 2017-07-05 22:36:18 +12:00
David Rowe
24b1963257 Tidying 2017-07-05 16:00:42 +12:00
David Rowe
1e76729d59 Lock laser distance while editing 2017-07-05 15:52:22 +12:00
David Rowe
75bc0f8b3f Translate and rotate selected entities 2017-07-05 15:47:08 +12:00
David Rowe
c85df15bad Display bounding boxes as highlights when hovering 2017-07-05 14:21:47 +12:00
David Rowe
dd1116092e Collect entities in parent-child tree that hovered entity belongs to 2017-07-05 14:20:29 +12:00
David Rowe
f9ee21525d A laser for each hand 2017-07-05 12:53:54 +12:00
David Rowe
bf722f084e A controller object for each hand 2017-07-05 12:49:36 +12:00
David Rowe
dcbf3ceeb9 Update loop 2017-07-05 12:40:45 +12:00
David Rowe
a24a0265f9 Improve communication with hand controller script 2017-07-04 16:24:17 +12:00
David Rowe
a863e37eb5 Communicate VR edit enabled state to hand controller script 2017-06-30 12:11:06 +12:00
David Rowe
84e11db772 VR edit app script and button 2017-06-29 16:58:56 +12:00