API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeHitArea
@codexo/exojs / rendering / stable
Acceptable shapes for RenderNode.hitArea, expressed in the node's own local space: a Rectangle, Circle, Ellipse or Polygon, or `null` for no override. A `Polygon` may be concave - containment is an even-odd ray cast, not a convex test - so an L-shaped or ring-like pick region behaves as drawn.
0
props
0
methods
0
events
Import
import { HitArea } from '@codexo/exojs'Acceptable shapes for RenderNode.hitArea, expressed in the node's own local space: a Rectangle, Circle, Ellipse or Polygon, or `null` for no override.
A `Polygon` may be concave - containment is an even-odd ray cast, not a convex test - so an L-shaped or ring-like pick region behaves as drawn.
Definition1
CircleMutable circle shape defined by a centre position and radius. Implements Collidable for use in the collision pipeline. For SAT-based collision the circle is ap… | EllipseMutable axis-aligned ellipse shape defined by a centre position and separate horizontal (`rx`) and vertical (`ry`) half-radii. Implements Collidable for use in… | PolygonMutable convex polygon defined by a world-space offset `(x, y)` and an array of local-space vertex Vectors. Implements Collidable with full SAT collision respo… | RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f… | nullSource