DrawablePolygon
Extends: Drawable
Properties
points(Array.<BGE.Math.Vector>) — The polygon's corners. Filled as their convex hull (in any order) unlessconcave.concave(boolean) — Fill the outline as drawn, notches and all, rather than its convex hull: the pointsfillRule(BGE.PolygonFillRule) — Withconcave, 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,
): DrawablePolygonParameters
owner(GameEntity)points(Array.<BGE.Math.Vector>, optional, default: "[]")args(roAssociativeArray, optional, default: "{}")
Instance Methods
addToRenderer(rendererObj: Renderer): BGE.SceneObject
Parameters
rendererObj(Renderer)
Returns