Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Geom
/
Intersects
Phaser 4.1.0
Phaser 4 examples
Intersects
14
examples
Examples
14
Circle to Circle Intersection
Demonstrates how to check for overlaps between two circles using the CircleToCircle intersection test.
Line to Circle Intersection
Demonstrates intersection testing between a rotating line and a circle that follows the pointer.
Line to Line Intersection
Demonstrates how to check for an intersection point between two geometric lines. One line rotates continuously while the other follows the mouse pointer.
Line to Rectangle Intersection
Demonstrates how to detect if a rotating line segment intersects with a rectangle using Phaser.Geom.Intersects.LineToRectangle.
Point to Line Intersection
Demonstrates checking if a point lies exactly on a line segment using the PointToLine intersection test.
Point To Line Segment
Demonstrates checking if a point lies exactly on a specific line segment using the PointToLineSegment intersection test.
Rectangle Intersection Area
Calculates and renders a new rectangle representing the overlapping intersection area of two rectangles.
Rectangle to Circle Intersection
Demonstrates checking for an intersection between a Circle and a Rectangle geometry object. The shapes change color when they overlap.
Rectangle to Rectangle Intersection
Demonstrates how to check for intersection between two Rectangle geometry objects using the RectangleToRectangle function.
Rectangle to Triangle Intersection
Demonstrates checking for intersection between a static Rectangle and a rotating Triangle that follows the pointer.
Rectangle to Values Intersection
Demonstrates checking for an intersection between a Rectangle and a set of boundary values (left, right, top, and bottom) representing other shapes.
Triangle To Circle Intersection
Demonstrates intersection detection between a rotating triangle and a movable circle using Phaser.Geom.Intersects.TriangleToCircle.
Triangle to Line Intersection
Demonstrates intersection testing between a rotating triangle and a line segment controlled by the pointer.
Triangle to Triangle Intersection
Demonstrates detecting whether two triangle shapes are overlapping, using a mouse-controlled triangle and a rotating triangle.