Terasology / Behaviors

Store for an assortment of behaviors that can be applied to creatures
https://terasology.github.io/Behaviors
6 stars 18 forks source link

feat: simulate gravity-less movement, add movement plugin for falling #96

Closed jdrueckert closed 2 years ago

jdrueckert commented 2 years ago

Extracted from https://github.com/Terasology/Behaviors/pull/92

We noticed that the underlying FlexiblePathfinding WalkingPlugin assumes that entities are not affected by gravity. To simulate this, we'll use the FLYING movement mode for all entities when moving them with the WalkingMovementPlugin or LeapingMovementPlugin.

In addition, this PR adds the FallingMovementPlugin for downwards movements. Here, we actually want gravity on the NPC, so this plugin will use the WALKING movement mode.