Skip to main content

PolygonColliderOptions

Index

Properties

optionaloffset

offset?: Vector

Pixel offset relative to a collider's body transform position.

points

points: Vector[]

Points in the polygon in order around the perimeter in local coordinates. These are relative from the body transform position.

optionalsuppressConvexWarning

suppressConvexWarning?: boolean

Suppresses convexity warning