Module core/physics/utils/circleToRectIntersect
Functions
circleRectCollision
- circleRectCollision(circle: Circle | { h: number; position: { x: number; y: number }; r: number; w: number }, rect: Sprite | Rect | { h: number; position: { x: number; y: number }; w: number }): boolean
Parameters
circle: Circle | { h: number; position: { x: number; y: number }; r: number; w: number }
rect: Sprite | Rect | { h: number; position: { x: number; y: number }; w: number }
Returns boolean
Returns a boolean based on if a circle is intersecting with a rectangle
1.1.0-beta