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

[pathfinding] Nav-mesh to avoid collision with moving objects #230

Open
rmr-code opened this issue Apr 27, 2018 · 3 comments
Open

[pathfinding] Nav-mesh to avoid collision with moving objects #230

rmr-code opened this issue Apr 27, 2018 · 3 comments

Comments

@rmr-code
Copy link

This is more like a feature request (or its integration with physics).

The use-case being that there is a (one or more) moving object in a scene and that could be in the path of the user. How do we avoid colliding with it.

@donmccurdy
Copy link
Collaborator

donmccurdy commented Apr 28, 2018

Hi @rajnikantmrao — for now this isn't really supported. The proper way to implement it would be for the navigation system to dynamically modify the navigation mesh around objects with a nav-obstacle component, as those objects move. Maybe in the future, but it's fairly complex and so I can't make any promises there. Using both physics and a navmesh for player movement obstacles is also not supported, although physics can still be used for other interactions while a navmesh is used for movement.

If you have a simpler use case (e.g. a door opens up when the user completes a level) you can change the navigation mesh yourself, and then call navMeshEl.components['nav-mesh'].loadNavMesh().

@rmr-code
Copy link
Author

Thanks @donmccurdy for the detailed response. I find the navmesh useful for my use-cases and keenly look forward to the enhancements. The collisions of the avatars is not a serious issue since I am sure, knowingly, folks will not want to "step on one another's toes" ... literally. Thanks for providing such excellent components that lets us focus on the applications.

@rmr-code
Copy link
Author

Or should I keep it open? Your call @donmccurdy

@rmr-code rmr-code reopened this Apr 29, 2018
@donmccurdy donmccurdy changed the title Feature Request: Nav-mesh to avoid collision with moving objects [pathfinding] Nav-mesh to avoid collision with moving objects Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants