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. Must be at least 3 points

optionalsuppressConvexWarning

suppressConvexWarning?: boolean

Suppresses convexity warning

Page Options