diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index 77573fe..22c3dc7 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -1356,6 +1356,10 @@ public static unsafe partial class Raylib [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern CBool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec); + // Check if circle collides with a line created betweeen two points [p1] and [p2] + [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern CBool CheckCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2 p2); + /// Check if point is inside rectangle [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern CBool CheckCollisionPointRec(Vector2 point, Rectangle rec);