OpenLayer
|
Shape
|
Poly
|
Collides
Collides
bool
Collides
(
const
Poly
&other,
const
Placement
&thisPlacement,
const
Placement
&otherPlacement )
Returns true if this polygon collides with the another polygon.
The Placements define how the polygons are placed when testing for a collision.
Other functions of the class
Poly
Add
Adds a vertex to the polygon
GetVertex
Returns the specified vertex
GetNumberOfVertices
Returns the number of vertices in the polygon
Draw
Draws a filled polygon.
DrawOutline
Draws an outline of the polygon
Collides
Tests if two polygons collide
GetCollision
Checks for a collision and returns detailed information about the collision
GetVertices
Returns the list of the vertices in the polygon
SetPivot
Sets the rotation pivot
GetPivot
Returns the the rotation pivot
SetOutlineTexture
Sets the texture of the outline of the polygon
Back to the main page of the manual
Questions about Collides? Click
here.