Commit Graph

53 Commits

Author SHA1 Message Date
Emma Broman
c463064170 Only show error once 2020-04-29 14:57:11 +02:00
Emma Broman
c979e6613d Add forgotten return 2020-04-29 14:50:20 +02:00
Emma Broman
4ff17ae078 Improved look at rotation interpolation 2020-04-29 13:50:14 +02:00
Emma Broman
b9de94c951 Rename rotation method that does't interpolate fully, to reduce confusion 2020-04-29 13:14:37 +02:00
Emma Broman
138c2a269d Refactor 2020-04-29 09:29:33 +02:00
Emma Broman
bf2c800831 Make PathSegment responsible for speed, rotation and curve initialization 2020-04-25 13:12:28 +02:00
Emma Broman
e062ba0813 Only use duration in scaling of speed funciton value 2020-04-22 14:10:23 +02:00
Emma Broman
4477fffb73 Move speed function out to its own class 2020-04-22 13:55:56 +02:00
Emma Broman
d6cdc86f44 Use midpoint method for speedsum integration 2020-04-16 09:37:27 +02:00
Emma Broman
a08250cc5c Increase accuracy of intergation along path segment 2020-04-15 16:47:08 +02:00
Emma Broman
49ae23aa94 Don't return negative speed values for t > 1.0 2020-04-15 16:02:12 +02:00
Emma Broman
a9005cdcbb Started implementing pause/stop behaviors 2020-04-15 13:44:53 +02:00
Emma Broman
3ddb4e6575 Simplify speed function 2020-03-31 11:27:30 +02:00
Emma Broman
39151bda2e Minor refactor 2020-03-30 14:41:36 +02:00
Emma Broman
76de04d1d7 Make PathSegment responsible for path traversal 2020-03-30 14:24:45 +02:00
Emma Broman
1524a207f7 store the valid bounding sphere once computed 2020-03-10 15:08:51 -04:00
Emma Broman
ed47272e8e Replace CameraState with a Waypoint and CameraPose struct 2020-03-10 11:07:03 -04:00
Emma Broman
4c9874c8d3 Some cleanup 2020-02-27 14:00:37 -05:00
Emma Broman
d704c95ca0 Move rotation logic into its own class 2020-02-27 13:30:39 -05:00
Emma Broman
aa0ae9bc73 rename function valueAt to positionAt 2020-02-27 10:07:51 -05:00
Emma Broman
3282f08ae6 remove extra blank line 2020-02-17 13:56:15 -05:00
Emma Broman
566b9959ec Minor refactor 2020-02-17 10:51:56 -05:00
Emma Broman
65cf8a79da Rename interpolation parameter to u, to reduce confusion about what is related to time 2020-02-17 10:30:36 -05:00
Emma Broman
caa05d09bd Refactor speed function 2020-02-14 11:20:59 -05:00
Emma Broman
32139120f8 Speed function for acceleration and deacceleration 2020-02-14 10:41:47 -05:00
Emma Broman
9600459635 Move along curve with constant speed, based on displacement along the curve 2020-02-13 16:22:57 -05:00
Emma Broman
1f2840c320 Preparatory refactoring for computing curve position absed on travelled distance 2020-02-13 14:37:08 -05:00
Emma Broman
3ead8a92dd Reparameterization of Bezier3 now works 2020-02-12 15:34:14 -05:00
Emma Broman
ffe417823f Refactor piecewise slerp a bit 2020-02-11 11:49:07 -05:00
Lingis
2370679fce Removed Bezier, Bezier2 and Linear2 curve types 2020-02-05 16:41:29 -05:00
Emma Broman
2b00e3054b Remove forgotten comment 2020-02-05 13:47:11 -05:00
Emma Broman
750ce7f948 Replace lookAtRotation to a version that also works with navigationStates 2020-02-05 11:28:46 -05:00
Emma Broman
6acbee90f7 Resolve merge conflict 2020-02-04 18:10:02 -05:00
Emma Broman
d60ff85b5a Remove custom easing functions. Use ghoul's instead 2020-02-04 18:07:47 -05:00
Emma Broman
40d634d249 Fix precision error by getPosition returning vec3 instead of dvec3 2020-02-03 17:11:36 -05:00
Lingis
cf8472cf34 Added accessors for rendering control points, for debugging 2020-02-03 11:19:31 -05:00
Lingis
9709a9c171 Merge 2020-01-26 17:39:24 -05:00
Lingis
c1c96cd81d Bezier3 with more special cases handled and lookAt rotation 2020-01-26 17:22:25 -05:00
Emma Broman
c44fff4b22 Temporary solution for handling pauses in instruction 2020-01-24 11:07:25 -05:00
Emma Broman
4ef577adf5 Resolve merge conflict in PathSegment constructor 2020-01-23 16:11:29 -05:00
Emma Broman
5fb34e24f8 Add posibility to include a start navigation state in path spec 2020-01-23 16:07:56 -05:00
Lingis
88b7dbe3eb merge conflict fix 2020-01-23 15:48:55 -05:00
Lingis
4507ac69fe Bezier3 added and set as default curve 2020-01-23 15:37:10 -05:00
Emma Broman
54dac17bfc Minor refactor 2020-01-22 11:17:40 -05:00
Emma Broman
a197ed0e7f Member variable for curve length and prepare for duration to be based on curve length 2020-01-22 11:09:05 -05:00
Emma Broman
146fc4ce8d Approximate curve length 2020-01-22 11:02:34 -05:00
Emma Broman
b528c6d4ab Refactor helper interpolating functions a bit 2020-01-16 14:38:12 -05:00
Emma Broman
b9a34cd0f0 Fix issues with circular dependencies 2020-01-16 14:21:50 -05:00
Emma Broman
6a6d2ca973 Split path curve code into separate file 2020-01-16 10:30:13 -05:00
Emma Broman
83037f8c47 Refactor path curve generation in PathSegment 2020-01-15 18:36:10 -05:00