Commit Graph

82 Commits

Author SHA1 Message Date
Francois Belair
0eb4adc48c Fix bug for collision avoid direction reversed
Once the agent was close enough to a neighbor, it tried to get closer
instead of away.
2020-01-21 12:49:46 -05:00
Francois Belair
fe00d231b8 Fix typo in seek instructions 2020-01-17 09:17:06 -05:00
Francois Belair
0a21aaf3fc Fix bug using wrong random number generator 2020-01-16 21:58:29 -05:00
Francois Belair
dffec9efa6 Add avoid collisions demo 2020-01-16 17:27:04 -05:00
Francois Belair
6e6f27505c Fix init time setters and export Follow variables
The use of `not is_inside_tree()` before setting the setting class' value
meant that the starting values would always be the default. Moving the
value setting before checking for tree readiness fixes the issue.
2020-01-16 12:31:02 -05:00
Francois Belair
86cd22cfde Merge branch 'master' into features/final-toys 2020-01-16 11:08:53 -05:00
Francois Belair
dde2825bde Fix divide by 0 bug in FollowPath demo 2020-01-16 11:08:23 -05:00
Răzvan C. Rădulescu
1f44bace3e Improve and review the available demos
- simplify code when possible
- add a simple info panel
- adhere to the "new" gdscript guidelines
2020-01-16 17:04:27 +02:00
Răzvan C. Rădulescu
f3f40848a1 Update folder structure for FoollowPath Demo 2020-01-16 15:30:55 +02:00
Răzvan C. Rădulescu
1a37b2bee0 Update project to follow GDScript guidelines closer
Used `var variable := 0.0` as discussed in the Godot issue, instead of
`var variable: = 0.0`.

Mostly these are minor/cosmetic changes, but I've also reorganized the
folder structure (naming of folders) to reflect our guidelines, plus
made some minor changes to the demo codes. Still work in progress.
2020-01-16 10:44:44 +02:00
Francois Belair
b325976139 Add path following toy demo 2020-01-15 17:15:40 -05:00
Francois Belair
0a8551e5c9 Remove GUI and export variables in demo scripts
Since we don't want to come up with a GUI maintenance system and
instead focus on the steering behaviors, all relevant variables have
been moved as exported in the main demo script for each toy.
2020-01-15 14:15:31 -05:00
Francois Belair
617b837772 Fix bug with implementation of drag in Arrive
Drag should inexorably draw towards 0, but when slow enough it could
instead cause a reverse direction.
2020-01-15 10:44:21 -05:00
Francois Belair
0e95c24c7f Add GDQuest theme to improved Pursue demo
Changed text boxes to sliders to improve usability. This also involved
adding some simple graphics, since the _draw method is not
anti-aliased and doesn't look great.
2020-01-13 16:15:44 -05:00
Francois Belair
82d92016a4 Add GDQuest theme to improved seek demo
Replaced the text boxes with sliders to improve usability.
2020-01-13 12:38:46 -05:00
Francois Belair
b0442982d0 Implement demo for separation and cohesion 2020-01-12 10:25:10 -05:00
Francois Belair
a01f5d5b2e Clean up and improve group behaviors' code
The first pass was somewhat obtuse and lacked a common class that
differentiated them from behaviors that didn't use Proximities.
2020-01-12 10:24:03 -05:00
Francois Belair
780e6038b8 Add FollowPath behavior 2020-01-12 10:23:51 -05:00
Francois Belair
84f0465b88 Add AvoidCollision behavior 2020-01-12 10:23:42 -05:00
Francois Belair
34b58a6bba Add Cohesion behavior and RadiusProximity caching 2020-01-12 10:23:19 -05:00
Francois Belair
ac99344633 Implement Separation behavior and add Proximity 2020-01-12 10:22:54 -05:00
Nathan Lovato
8fb4f4c51a Replace multiline comments with comment blocks
The use of multiline blocks in GDSCript for comments leaves them in the
final compiled file, increasing size and potentially processing for no
end-user gain.
2020-01-12 10:21:43 -05:00
Francois Belair
9f945cbf85 Implement review suggestions to code
Razvan reviewed the code and suggested a number of changes to improve
readability and make facets of the code more explicit and consistent.
2020-01-12 10:20:06 -05:00
Francois Belair
35d9b2e1a6 Add GUI to Arrive demo 2020-01-12 10:19:59 -05:00
Francois Belair
87aef48251 Add GUI to Face demo 2020-01-12 10:19:53 -05:00
Francois Belair
fc0b36ff22 Add GUI to Pursue demo 2020-01-12 10:19:40 -05:00
Francois Belair
3d50dcdb9c Add GUI controls to seek/flee demo
Being toy demos, they should be easily tweakable and modifiable by the
user to get a feel for what the parameters of the behaviors do.
2020-01-12 10:18:53 -05:00
Francois Belair
3e9ce641fb Add Blend and Priority behaviors 2020-01-12 10:18:40 -05:00
Francois Belair
b32446217d Implement demo for Arrive behavior 2020-01-12 10:18:29 -05:00
Francois Belair
546d12b15b Implement demo for Face behavior 2020-01-12 10:18:16 -05:00
Francois Belair
f531e835fd Implement LookWhereYouGo, and demo for Pursue 2020-01-12 10:17:53 -05:00
Francois Belair
fb538b72cb Reorganize project
The GST namespace has been added to prevent class name conflicts, and
the project has been reorganized to make extensions and purpose easier.
2020-01-12 10:16:37 -05:00