예제 #1
0
 /// Get the normal of the ith contact point.
 public Vector2 GetNormal(int i)
 {
     if (0 <= i && i < contactCount)
     {
         return(CP.cpArbiterGetNormal(_handle, i));
     }
     else
     {
         Debug.LogError("Index out of bounds");
         return(Vector2.zero);
     }
 }