Small World Engine API Reference - v0.78.00
    Preparing search index...

    Class Ray2D

    A 2D ray, for planar/cross-section geometry (top-down gameplay logic, sightlines, or a horizontal/vertical slice through a 3D scene -- e.g. tracing a light ray through a prism's triangular cross-section, as apps/showcases/28 does). For raycasting against full 3D scene geometry, see src/physix/Ray.ts instead.

    Index
    direction: Vector2D
    origin: Vector2D