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

Add storybook demonstrating how to correct navmesh height with raycasting #116

Open
isaac-mason opened this issue Aug 30, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@isaac-mason
Copy link
Owner

Depending on the cell height of a nav mesh, agents can appear to be floating.

A common solution for this problem is raycasting to determine how to adjust an agents display position.

Should add a storybook demonstrating this common scenario.

@isaac-mason isaac-mason added the documentation Improvements or additions to documentation label Sep 24, 2023
@isaac-mason
Copy link
Owner Author

Experimenting with this in isaac-mason/sketches: https://github.com/isaac-mason/sketches/tree/70b43b0df475e796b2d6f169ea718b69cc392504/src/sketches/recast-navigation/character-controller

This isn't a general solution yet though. That sketch only uses one ray, which leads to undesired behaviour when traversing over terrain that has gaps, e.g. a wooden plank bridge. A sphere intersection test / shapecast may be a more general solution for this.

@isaac-mason isaac-mason changed the title Add storybook demonstrating how to solve floating agent problem with raycasting Add storybook demonstrating how to correct height with raycasting Sep 24, 2023
@isaac-mason isaac-mason changed the title Add storybook demonstrating how to correct height with raycasting Add storybook demonstrating how to correct navmesh height with raycasting Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant