overte/scripts/system
Leander Hasty fa74fbc986 [Case 6491] fixes rotation skip near 0 and 180.
Previously, when rotating, it would be easy to achieve 1 degree granularity, except near the 0 degree and 180 degree "poles", where it would often e.g. jump from 10 to -10, or 174 to -175, or similar.

yawZero/pitchZero/rollZero were all based on the yawHandle/pitchHandle/rollHandle ray intersection, and were not necessarily coplanar with rotateOverlayTarget. As a result, centerToZero didn't lie on the expected plane, while centerToIntersect did.  This had the effect of distorting the rotation range.

We also have a possible issue in here with editOverlay(rotationOverlayTarget,{rotation:...}) not taking effect immediately.  Better to take the existing ray and cast against a known plane, as e.g. translateXZTool and such do.  No risk of stale rotation in that case.

This also cleans up rotationHelper args a bit to avoid some string switches and keep flow a little more readable.

TODO: propagate ray-plane test to helperRotationHandleOnMove rather than relying on ray hit location; normalize onBegin/onMove/etc across all tools to take queryRay and results args to avoid recreating the ray.

Reviewed-by: LaShonda Hopper <lashonda@1stplayable.com>
2017-09-28 15:04:27 -04:00
..
assets Add beeps 2017-06-24 14:26:01 +12:00
commerce Commerce: Tons of Interface changes (#11463) 2017-09-27 14:43:51 -07:00
controllers Merge pull request #11470 from sethalves/fix-grab-vs-trigger 2017-09-27 15:24:37 -07:00
html Merge pull request #11470 from sethalves/fix-grab-vs-trigger 2017-09-27 15:24:37 -07:00
libraries [Case 6491] fixes rotation skip near 0 and 180. 2017-09-28 15:04:27 -04:00
marketplaces Commerce: Tons of Interface changes (#11463) 2017-09-27 14:43:51 -07:00
particle_explorer Change emitShouldTrail to emitterShouldTrail. 2017-08-18 15:10:58 -07:00
tablet-ui Merge pull request #11427 from ElderOrb/case7723 2017-09-26 22:05:45 -07:00
attachedEntitiesManager.js
audio.js Fix toolbar button activation states 2017-06-26 23:33:32 -07:00
audioMuteOverlay.js update JS with Audio.muted 2017-06-13 16:02:58 -04:00
audioScope.js added icons to the audioScope app 2017-03-10 18:13:35 -08:00
avatarFinderBeacon.js
away.js away.js - works better with sensor scale. 2017-09-05 17:34:35 -07:00
bubble.js Refactoring. 2017-09-08 17:58:16 +01:00
chat.js remove semi-colon 2017-07-31 08:02:18 -07:00
dialTone.js update JS with Audio.muted 2017-06-13 16:02:58 -04:00
directory.js
edit.js fixing entitySelectionTool 2017-09-27 10:52:56 -07:00
fingerPaint.js fixed typo in comments 2017-04-14 14:10:19 -07:00
firstPersonHMD.js
generalSettings.js Revert "Merge from upstream/master" 2017-03-28 17:39:45 -07:00
goto.js Close toolbar windows when scripts are reloaded 2017-03-08 21:44:04 +00:00
help.js a couple logging fixes 2017-08-14 17:34:32 -07:00
hmd.js 7385 - Collect Stats on "Exit VR" button 2017-09-05 21:26:35 +03:00
makeUserConnection.js Tip, Code Writer which comes standard with Windows 10, does enter tabs by default when using the tab key. >=) 2017-09-20 14:59:15 -07:00
menu.js Fix toolbar button activation states 2017-06-26 23:33:32 -07:00
mod.js
nameTag.js Revert "Actually merge from master" 2017-03-24 17:56:48 -07:00
notifications.js code review feedback 2017-09-20 09:21:15 -07:00
pal.js add flag to outline render flags, fix pal.js/edit.js interaction 2017-08-03 07:57:21 -07:00
progress.js fix reference to pending transfer count for progress/stats 2017-05-26 14:37:24 -07:00
snapshot.js Merge branch 'master' into modal_dialogs_async 2017-08-31 20:39:48 +02:00
tablet-goto.js 5830: Go-To menu shows up blank except for address bar 2017-08-23 23:27:02 +03:00
tablet-users.js Revert "Merge from upstream/master" 2017-03-28 17:39:45 -07:00
voxels.js Revert "Actually merge from master" 2017-03-24 17:56:48 -07:00