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?
↧