|
CircleHitShape | |
State = CircleHitShape(X#, Y#, Radius, ShapeIndex, ShapeX#, ShapeY#) | |
Parameters: X# = The X coordinate of the test circle Y# = The Y coordinate of the test circle Radius = The raidus of the test circle ShapeIndex = The index of the shape you wish to test ShapeX# = The base X position of the test shape ShapeY# = The base Y position of the test shape |
|
Returns: State = The hit state of the circle (0 = outside of shape, 1 = intersects shape) |
|
The CircleHitShape function checks if a circle is inside, or intersects a vector shape. It will return a true (1) when it intersects, or a false(0) when it does not. FACTS: * None Mini Tutorial: This example checks if a circle positioned at the mouse pointer position, hits a moving shape.
Sample output, |
Related Info: | BoxHitShape | LineHitShape | PointHitShape | ShapeHitShape : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |