getConvexHull
getConvexHull: (WallObject) -> Shape?The outline of its first model on the canvas, nil when it does not project, has no readable model or is gone.
scene:tileAt(…):getWallObject()| Method | Returns | Description |
|---|---|---|
getConvexHull() | Shape? | The outline of its first model on the canvas, nil when it does not project, has no readable model or is gone. |
getConvexHull2() | Shape? | The outline of its second model (a corner wall's other side), as getConvexHull(). |
getRenderable1() | Renderable? | What the scene draws for its first side, nil when none (or gone). |
getRenderable2() | Renderable? | What the scene draws for its second side, nil when none (or gone). |
getOrientationA() | number | The first orientation, a direction flag (1 west, 2 north, 4 east, 8 south; the corners for a diagonal wall). |
getOrientationB() | number | The second orientation (a corner wall's other side), else 0. |
getConfig() | number | type & 31, orientation >>> 6 & 3, supports items >>> 8 & 1. |
| Method | Returns | Description |
|---|---|---|
Tile.getWallObject | WallObject? | Its wall object, if any. |
WallObjectDespawned.getWallObject | WallObject | The object. |
WallObjectSpawned.getWallObject | WallObject | The object. |
getConvexHullgetConvexHull: (WallObject) -> Shape?The outline of its first model on the canvas, nil when it does not project, has no readable model or is gone.
getConvexHull2getConvexHull2: (WallObject) -> Shape?The outline of its second model (a corner wall's other side), as getConvexHull().
getRenderable1getRenderable1: (WallObject) -> Renderable?What the scene draws for its first side, nil when none (or gone).
getRenderable2getRenderable2: (WallObject) -> Renderable?What the scene draws for its second side, nil when none (or gone).
getOrientationAgetOrientationA: (WallObject) -> numberThe first orientation, a direction flag (1 west, 2 north, 4 east, 8 south; the corners for a diagonal wall).
getOrientationBgetOrientationB: (WallObject) -> numberThe second orientation (a corner wall's other side), else 0.
getConfiggetConfig: (WallObject) -> numbertype & 31, orientation >>> 6 & 3, supports items >>> 8 & 1.