NavMeshSurface - support for tree colliders#101
Open
OndrejPetrzilka wants to merge 4 commits intoUnity-Technologies:masterfrom
Open
NavMeshSurface - support for tree colliders#101OndrejPetrzilka wants to merge 4 commits intoUnity-Technologies:masterfrom
OndrejPetrzilka wants to merge 4 commits intoUnity-Technologies:masterfrom
Conversation
RadonRaph
approved these changes
Nov 25, 2019
Author
|
There was missing TryCast extension method, fixed |
|
@turadr Could we please have a review on this? Would be so awesome to have this available in the NavMeshComponents. Thank you! :)) |
Collaborator
|
@hendriku We appreciate the work put into this PR but unfortunately we cannot take contributions to this repository right now. If that will become possible in the future we will then address this PR. |
|
thanks, that's useful! |
kkolyan
reviewed
Dec 3, 2022
| SphereCollider sphere; | ||
| CapsuleCollider capsule; | ||
| MeshCollider mesh; | ||
| if (collider.TryCast(out sphere)) |
There was a problem hiding this comment.
if (collider is SphereCollider sphere), etc
|
Hi what is the NavMechComponents URL for Unity cus when i go in unity to my Package Manager the URL from NavMechComponents doesnt work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After sources are collected by calling
NavMeshBuilder.CollectSources, go through and add tree colliders for eachTerrainColliderencountered.Supported tree colliders are: Sphere, Capsule, Box, Mesh.
Tree colliders are added with hard-coded area
Non-walkable.NavMeshModifieron trees is not supported (yet).NavMeshModifierVolumeshould work as usual, even on trees.In future I'd like to support
NavMeshModifierand use default area instead of hard-codedNon-walkableResolves #30