SetPivot

void SetPivot(
Vec2D rotationPivot )

Sets the rotation pivot of the polygon.

The rotation pivot is mainly used by the collision routines.

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


Questions about SetPivot? Click here.