One Logo Pool Ball
GameplayKit · IOS API REFERENCE

GKPolygonObstacle

class · iOS 9.0+ · SDK 27.1

class GKPolygonObstacle

Members (3)

method · iOS 9.0+

vertex

TypeScript
vertex(index: number): SDKHandle
Swift declaration
func vertex(at index: Int) -> vector_float2
get · iOS 9.0+

vertexCount

TypeScript
get vertexCount(): number
Swift declaration
var vertexCount: Int { get }
init · iOS 9.0+

init

TypeScript
static init(points: Array<SDKHandle>): GKPolygonObstacle
Swift declaration
convenience init(points: [SIMD2<Float>])

Creates a polygon obstacle with an array of points. - Parameter points: array of points in counter-clockwise order that are the vertices of a convex polygon

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

GKPolygonObstacle.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All GameplayKit types →