DrawablePolygon

Extends: Drawable

Properties

  • points (Array.<BGE.Math.Vector>) — The polygon's corners. Filled as their convex hull (in any order) unless concave.
  • concave (boolean) — Fill the outline as drawn, notches and all, rather than its convex hull: the points
  • fillRule (BGE.PolygonFillRule) — With concave, what's inside a self-intersecting outline: nonzero (a star drawn as one

Constructor

new DrawablePolygon( owner: GameEntity, points?: Array.<BGE.Math.Vector>, args?: roAssociativeArray, ): DrawablePolygon

Parameters

  • owner (GameEntity)
  • points (Array.<BGE.Math.Vector>, optional, default: "[]")
  • args (roAssociativeArray, optional, default: "{}")

Instance Methods

addToRenderer(rendererObj: Renderer): BGE.SceneObject

Parameters

Returns