efab")
];

...

export function onCollision() {
  let center = vec3(0, 1.6, 0);
  let dim = vec3(3, 3, 3);

  // If if a 3x3x3 box just above around the origin is clear.
  // Notice that we place it slightly above the ground so it doesn't
  // intersect with the ground, otherwise the box would never be clear.
  if (!checkBox(center, dim)) {
    // Area is free of actors/terrain, so it's safe to spawn something
    // there. This assumes the spawned actor fits in the 3x3x3 box.
    clone(props.prefab, vec3(0