- Home /
Question by
PhoenixRFA · Nov 07, 2018 at 03:24 PM ·
collidersmeshcolliderobstacle
Alternative to ClosestPoint method
Hi everyone, there is a problem! I need to find obstacle coordinate that is in some region near character. I'm using OverlapSphere to check is there some near the character, and planned to use ClosestPoint to find position. The character is inside some tunnel with non-convex mesh collider and ClosestPoint not working here. Is there a way to solve this problem?
Comment
Answer by hectorux · Nov 07, 2018 at 11:12 PM
You could use tags and chek if your tunnel ahve the obstacle tag
Your answer