this post was submitted on 07 Dec 2023
3 points (100.0% liked)

Godot

6010 readers
28 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 2 years ago
MODERATORS
 

I'm working on a game which involves characters doing path-finding and interacting with each other. My first impulse was to use navigationagent3d for this, but I'm running into issues which may or may not be related to my current understanding of the usefulness and intended purposes of naviagtion agents.

Basically, the agents should be able to walk up to each other and do a little push which should have a knockback effect. The knockback method works in isolation on standard character bodies without the navigation agent added, but seems to not be calculated by the agents.

The knockback is being added to the velocity with a lerp that quickly brings it back to zero. Again, that works fine on units without navigation agent. I'm wondering if this might have something to do then with the set_velocity method of the agents? Is there something about that which would prevent them from interacting with each other using the knockback?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here