In this page: Unity - Scripting API: Vector3.sqrMagnitude
There is an error in C# code =).
float sqrLen = other.position - transform.position.sqrMagnitude;
it’s:
float sqrLen = (other.position - transform.position).sqrMagnitude;
In this page: Unity - Scripting API: Vector3.sqrMagnitude
There is an error in C# code =).
float sqrLen = other.position - transform.position.sqrMagnitude;
it’s:
float sqrLen = (other.position - transform.position).sqrMagnitude;
Use the bug reporter app for reporting documentation bugs; posting them on the forums won’t get them into the system.
–Eric