Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from Feb 27, 2022

Conversation

jdrueckert
Copy link
Member

Extracted from #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.

@jdrueckert jdrueckert added Type: Improvement Request for or addition/enhancement of a feature Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Topic: AI Requests, Issues and Changes related to pathfinding, behaviors, etc. labels Feb 19, 2022
@jdrueckert jdrueckert self-assigned this Feb 19, 2022
@jdrueckert jdrueckert merged commit 7d9a98e into develop Feb 27, 2022
@jdrueckert jdrueckert deleted the feat/add-falling-plugin-and-debug-logs branch February 27, 2022 20:17
skaldarnar added a commit that referenced this pull request Mar 13, 2022
- style: format `.behavior` files
- chore: add TODO ideas and questions in several places
- chore: add some debug logging
- feature/fix: small adjustments to Behaviors logic

Follow-up PR to #89.

Related PRs (extracted from this): #94, #96, #97, #99.

Contributes to MovingBlocks/Terasology#4981.

Depends on Terasology/FlexiblePathfinding#26 and Terasology/FlexiblePathfinding#27.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Topic: AI Requests, Issues and Changes related to pathfinding, behaviors, etc. Type: Improvement Request for or addition/enhancement of a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants