ConvexShape.setPoint

Set the position of a point.

Don't forget that the polygon must remain convex, and the points need to stay ordered! pointCount must be changed first in order to set the total number of points. The result is undefined if index is out of the valid *range.

class ConvexShape
void
setPoint

Parameters

index
Type: uint

Index of the point to change, in range [0 .. pointCount - 1]

point
Type: Vector2f

New position of the point

Meta