Skip to content
HALOWERK

Gamingwerk

game tile collision sweep

Return earliest continuous axis-aligned collision along a supplied rectangular movement.

POST https://gaming.halowerk.com/v1/game-tile-collision-sweep

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
movingReferenceYes
deltaobjectYes
obstaclesarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "moving": {
      "$ref": "#/$defs/s0"
    },
    "delta": {
      "type": "object",
      "properties": {
        "x": {
          "$ref": "#/$defs/s1"
        },
        "y": {
          "$ref": "#/$defs/s1"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "additionalProperties": false
    },
    "obstacles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/s0"
      },
      "maxItems": 100,
      "minItems": 0
    }
  },
  "required": [
    "moving",
    "delta",
    "obstacles"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w3:F3:input",
  "$defs": {
    "s0": {
      "type": "object",
      "properties": {
        "x": {
          "$ref": "#/$defs/s1"
        },
        "y": {
          "$ref": "#/$defs/s1"
        },
        "w": {
          "$ref": "#/$defs/s2"
        },
        "h": {
          "$ref": "#/$defs/s2"
        }
      },
      "required": [
        "x",
        "y",
        "w",
        "h"
      ],
      "additionalProperties": false
    },
    "s1": {
      "type": "number",
      "minimum": -1000000,
      "maximum": 1000000
    },
    "s2": {
      "type": "number",
      "minimum": 1e-06,
      "maximum": 1000000
    }
  }
}

Open original schema

Published input example

{
  "moving": {
    "x": 0,
    "y": 0,
    "w": 1,
    "h": 1
  },
  "delta": {
    "x": 2,
    "y": 0
  },
  "obstacles": [
    {
      "x": 2,
      "y": 0,
      "w": 1,
      "h": 1
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’