7 Commits

Author SHA1 Message Date
3cfd698276 added nose for Meldewesen for easier debugging
set Min Pill level to 1 -> otherwise collisions seems to stop working
changed Meldewesen behavior: only "catch" player if is in forbidden Area, otherwise just following
2019-12-27 18:10:09 +01:00
603e21b6fe Smooth NPC turning
The Meldewesen now turns smoothly instead of abruptly. In addition,
while turning, its move speed decreases, causing it to mostly turn on
the spot.
2019-11-11 11:18:06 +01:00
9fd3087fdc Meldewesen runs towards player when seeing it
The NPC got some functionality which now allows it to tell the
PathNavigator where it wants to go, in addition to the default
behavior.
2019-11-11 10:49:50 +01:00
93f59ec131 Add NPC class which Meldewesen now inherits from
This is in preparation for being able to more finely control the NPC,
both from the specific NPC implementation and the PathNavigator (which
was renamed accordingly)
2019-11-11 10:24:29 +01:00
d2ee524f72 Fix issues with Meldewesen pathfinding
The NavigationMeshInstance now keeps larger distances from obstacles to
avoid the Meldewesen from colliding with them while traversing the
correct path.

A possible issue with the look_at vector has been fixed as well.
2019-11-11 10:16:03 +01:00
c3301e15db Add NodeGroupNotifier to generalize PathNavigator
The NodeGroupNotifier notifies nodes within a specific group of the
existence of a specific Node. With this new node, the Navigation does
not need to be specifically assigned to the
PathNavigatorForKinematicBody, making it easier to use in different
scenarios.
2019-10-30 00:48:24 +01:00
9c583ed694 Implement basic path following for Meldewesen
The PathNavigatorForKinematicBody node can take a KinematicBody as a
child and move it along its path. It doesn't strictly follow the path
though, but also avoids obstacles according to the Navigation (with its
Navmesh).

How the Navigation node is fetched will be changed using Groups later,
the current structure is temporary.

A PathTestWorld has been added for testing this behavior, as well as a
basic Meldewesen.
2019-10-28 01:25:52 +01:00