Beispiel #1
0
 public static Vector3 NearestVertexTo(this MeshCollider collider, Vector3 point)
 {
     return(MathExtension.NearestVertexTo(((Component)collider).get_transform(), collider.get_sharedMesh(), point));
 }
Beispiel #2
0
 public static Vector3 NearestVertexTo(this MeshFilter meshFilter, Vector3 point)
 {
     return(MathExtension.NearestVertexTo(((Component)meshFilter).get_transform(), meshFilter.get_mesh(), point));
 }