|
ShapeHitShape | |
State = ShapeHitShape(ShapeIndex1, ShapeX1#, ShapeY1#, ShapeIndex2, ShapeX2#, ShapeY2#) | |
Parameters: ShapeIndex1 = The index of the first shape you wish to test ShapeX1# = The base X position of the test shape1 ShapeY1# = The base Y position of the test shape1 ShapeIndex2 = The index of the second shape you wish to test ShapeX2# = The base X position of the test shape2 ShapeY2# = The base Y position of the test shape2 |
|
Returns: State = The hit state of the circle (0 = outside of shape, 1 = intersects shape) |
|
The ShapeHitShape function checks if a Shape overlaps / intersects another vector shape. It will return a True (1) when they intersect, or a False(0) when it does not. FACTS: * None Mini Tutorial: This example checks if a hollowed shape positioned at the mouse pointer position, hits a moving shape.
This example outputs, |
Related Info: | BoxHitShape | CircleHitShape | LineHitShape | PointHitShape : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |