OccluderPolygon2D

Inherits: Resource < Reference < Object Defines a 2D polygon for LightOccluder2D.

Description

LightOccluder2D.

Properties

Enumerations

CullMode:

  • CULL_DISABLED = 0 —- Culling is disabled. See cull_mode.
  • CULL_CLOCKWISE = 1 —- Culling is performed in the clockwise direction. See cull_mode.
  • CULL_COUNTER_CLOCKWISE = 2 —- Culling is performed in the counterclockwise direction. See cull_mode.

    Property Descriptions

  • bool closed true, closes the polygon. A closed OccluderPolygon2D occludes the light coming from any direction. An opened OccluderPolygon2D occludes the light only at its outline’s direction.

  • CullMode cull_mode The culling mode to use.

  • PoolVector2Array polygon Vector2 array with the index for polygon’s vertices positions. Note: The returned value is a copy of the underlying array, rather than a reference.