Log inGet started
Package

obstacles.module

This package holds more than this page lists. See all of its files in its world.

README.md

obstacles

The crashObstacles API: require("crashObstacles.obstacles"). spawn({ kind, position, synced, vehicle }) builds one of eleven crash-test obstacles (wall, offset, smallOverlap, bollard, pole, tree, guardrail, cushion, parkedCar, sidePole, rear) with its impact face at position pointing +Z, and returns a handle with the obstacle's spec (mode frontal / side / rear, real-world test, crushable), the car's lateral alignX for the overlap and, for rear tests, the mover trolley the rig launches. Also despawn, catalog, kinds, spec, alignX, dent (permanent dent in metres) and repair. Called by a crash rig or any game that needs something to crash into; see the package README for the full contract.