Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

Why can't compiler find Physics.ClosestPoint or Collider.ClosestPoint?

$
0
0
So according to the documentation these functions exist: https://docs.unity3d.com/ScriptReference/Physics.ClosestPoint.html https://docs.unity3d.com/ScriptReference/Collider.ClosestPoint.html However my Unity isn't able to find either of them. error CS0117: `UnityEngine.Physics' does not contain a definition for `ClosestPoint' error CS1061: Type `UnityEngine.Collider' does not contain a definition for `ClosestPoint' and no extension method `ClosestPoint' of type `UnityEngine.Collider' could be found. Are you missing an assembly reference? I tried various usings such as: using Collider; using UnityEngine.Collider; But those aren't namespaces, ect. Idk why that would be necessary since I can use Collider & Physics functions otherwise. I just updated to 5.5.4f1 and still have the problem. What is going on?

Viewing all articles
Browse latest Browse all 398

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>