Commit Graph

44 Commits

Author SHA1 Message Date
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
Emma Broman
965ce2a6a7 Prototype solution to provide curve type (kinda ugly) 2020-01-24 10:30:25 -05:00
Emma Broman
aa8a2a98b3 Move path instruction class to its own file 2020-01-23 17:36:06 -05:00
Emma Broman
5fb34e24f8 Add posibility to include a start navigation state in path spec 2020-01-23 16:07:56 -05:00
Emma Broman
98d8c0159c Update current time before we start stepping along the curve. Did not reach end before 2020-01-23 14:46:30 -05:00
Emma Broman
54dac17bfc Minor refactor 2020-01-22 11:17:40 -05:00
Emma Broman
f8cf415ad3 Merge branch 'thesis/2019/camera-paths' into path-segments 2020-01-16 11:06:27 -05:00
Emma Broman
adae43c68f Update error checks, since ghoul_assert only runs in Debug 2020-01-16 11:03:51 -05:00
Emma Broman
b15fff68c3 Fix so all paths return a value 2020-01-15 18:39:43 -05:00
Emma Broman
83037f8c47 Refactor path curve generation in PathSegment 2020-01-15 18:36:10 -05:00
Emma Broman
42c797093a minor cleanup 2020-01-15 14:23:28 -05:00
Emma Broman
d1b3e4e7ce cleanup path segment creation and move duration default to PathSegment 2020-01-15 14:12:04 -05:00
Emma Broman
a34d3473b8 Resolve merge conflict and make accessors in PathSegement read-only 2020-01-15 11:56:18 -05:00
Emma Broman
d4c1bb5199 Remove risk of access violation and add a comment 2020-01-15 11:47:08 -05:00
Emma Broman
6213d8713d read stop at targets setting from path spec 2020-01-15 10:55:04 -05:00
Emma Broman
2810bbdde2 Add possiblity to add pauses in path spec (just a duration) 2020-01-14 17:17:01 -05:00
Emma Broman
76ed9f594d Add first prototype of pause/continue behavior 2020-01-14 15:36:53 -05:00
Emma Broman
1b2fb0d06a Minor cleanup
Compute paht duration on the fly rather than storing a variable
2020-01-14 09:25:07 -05:00
Emma Broman
24d916a03e Remove code that should not have been part of previous commit
Forgot to merge master into this branch before setting up the new and
cleaned repo. The code that was removed from this commit shall not be
	part of the changes in this branch.
2020-01-10 17:11:54 -05:00
Emma Broman
0a984df58c Add code for different path segments from Ingelas old branch 2020-01-10 15:48:37 -05:00
Emma Broman
3e283d1630 Add code for camera path generation module
Add all code in the state it was in Jan 10 2020 when branch cleanup was performed
2020-01-10 14:59:08 -05:00