Commit Graph

70 Commits

Author SHA1 Message Date
Emma Broman
0fe7f9c473 Compute end point smarter if target is close to another node 2020-05-27 10:47:48 +02:00
Emma Broman
e797da8d75 Include final position when rendering the path.. 2020-05-26 14:21:46 +02:00
Emma Broman
5beaec3169 Tiny refactor 2020-05-26 09:07:02 +02:00
Emma Broman
4cfb1fdd44 Refactor 2020-05-21 10:41:51 +02:00
Emma Broman
3fde62b7ca Get changes from main branch and resolve merge conflict 2020-05-14 16:03:24 +02:00
unknown
544f2531b0 Functions for retrieving view direction added 2020-05-07 18:25:45 +02:00
Emma Broman
89e88532f9 Cleanup some faulty includes 2020-05-01 13:05:29 +02:00
Emma Broman
ae5b5ec417 Prototype curve for creating collision free paths 2020-04-27 14:42:00 +02:00
Emma Broman
7757f160d7 Fix typo 2020-04-27 10:21:28 +02:00
Emma Broman
4477fffb73 Move speed function out to its own class 2020-04-22 13:55:56 +02:00
Emma Broman
1f9ee056a8 Add property for applying pause behavior without camera path 2020-04-20 16:21:48 +02:00
Emma Broman
ae5be74423 Cleanup temporary computation of default position 2020-04-15 13:44:53 +02:00
Emma Broman
a13ec59714 Allow instructions to change the stop behavior 2020-04-15 13:44:53 +02:00
Emma Broman
a9005cdcbb Started implementing pause/stop behaviors 2020-04-15 13:44:53 +02:00
Emma Broman
9d10abcff3 make sure that the stopAtTargets property is applied 2020-04-15 13:44:53 +02:00
Emma Broman
66fbd34045 Start refactoring pauses and do some cleanup 2020-04-15 13:43:36 +02:00
Emma Broman
141df97471 Move min boundingsphere property to module class and access globally 2020-04-06 17:22:29 +02:00
Emma Broman
df5b518f07 refactor instructions 2020-04-06 16:25:20 +02:00
Emma Broman
387c2adbee Remove old pause impl. and make property for stopAtTargets 2020-04-05 14:33:14 +02:00
Emma Broman
82c0ae659b Bug fix: distance to lookAt pos in roll removal too small for alrge distances 2020-04-02 21:00:23 +02:00
Emma Broman
c4c46a2043 Add property to remove roll 2020-04-01 19:44:58 +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
24e29955a3 refactor 2020-03-09 17:52:00 -04:00
Emma Broman
edaf37b260 Early out if simulation not paused. Also, temporary pause on play, for testing 2020-03-09 13:52:23 -04:00
Emma Broman
a38aa3ff8e Make that we always reach the target (u = 1.0) 2020-03-06 16:54:21 -05:00
Emma Broman
4c9874c8d3 Some cleanup 2020-02-27 14:00:37 -05:00
Emma Broman
d606a569bc minor refactor 2020-02-27 10:48:44 -05:00
Emma Broman
9c65138d73 Bug fix: No longer use reference for current path segment, since its value is set later in the code 2020-02-26 13:17:56 -05:00
Emma Broman
0db62b740c Simplify curve type handling using properties (Temporary solution) 2020-02-26 10:52:37 -05:00
Emma Broman
6ec519b0ca Make minimal allowed bounding sphere a property 2020-02-26 09:49:17 -05:00
Emma Broman
cee455f649 Avoid errors for targets without bounding spheres 2020-02-26 09:00:36 -05:00
Emma Broman
50d7bdafcf minor cleanup 2020-02-25 10:35:48 -05:00
Emma Broman
b15689cd50 Make sure that the anchor node is always updated 2020-02-24 08:49:29 -05:00
Emma Broman
ff419371fa Remove a non-used function 2020-02-17 15:02:43 -05:00
Emma Broman
566b9959ec Minor refactor 2020-02-17 10:51:56 -05:00
Emma Broman
95449a633c Reset current distance along segment when clearing a path 2020-02-17 10:43:15 -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
b71a5519ba Update anchor halfway, not every frame 2020-02-14 13:27:21 -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
Lingis
2370679fce Removed Bezier, Bezier2 and Linear2 curve types 2020-02-05 16:41:29 -05:00
Emma Broman
e28435994f Fix warning related to implicit conversion from int to char 2020-02-05 13:50:16 -05:00
Lingis
cf8472cf34 Added accessors for rendering control points, for debugging 2020-02-03 11:19:31 -05:00
Emma Broman
fdb9903713 Provide path position function, to use for rendering of path 2020-01-30 16:16:51 -05:00
Emma Broman
e209e7cd6a Add funciton and keybinding to stop playing a path 2020-01-26 16:30:20 -05:00
Emma Broman
c44fff4b22 Temporary solution for handling pauses in instruction 2020-01-24 11:07:25 -05:00