function colliderToShape(node, dpi) {
  if (node.collider) {
    const mvm = node.modelViewMatrix;
    const isCollection = node.colliderType === 'collection';

    if (isCollection) {
      const children = node.collider.geometries.map((geometry) => geometryToDef(geometry, dpi, mvm));

      return {
        type: 'container',
        children,
      };
    }

    return geometryToDef(node.collider, dpi, mvm);
  }

  return null;
}
/**
 * @ignore
 * @returns {object} Returns a node definition of the collider
 */
@ignore
@returns {object} Returns a node definition of the collider
@ignore @returns { object } Returns a node definition of the collider
function colliderToShape(node, dpi) {
  if (node.collider) {
    const mvm = node.modelViewMatrix;
    const isCollection = node.colliderType === 'collection';
    if (isCollection) {
      const children = node.collider.geometries.map((geometry) => geometryToDef(geometry, dpi, mvm));
      return {
        type: 'container',
        children,
      };
    }
    return geometryToDef(node.collider, dpi, mvm);
  }
  return null;
}
function colliderToShape ( node , dpi ) { if ( node . collider ) { const mvm = node . modelViewMatrix ; const isCollection = node . colliderType === 'collection' ; if ( isCollection ) { const children = node . collider . geometries . map ( ( geometry ) => geometryToDef ( geometry , dpi , mvm ) ) ; return { type : 'container' , children , } ; } return geometryToDef ( node . collider , dpi , mvm ) ; } return null ; }
@ignore
 @returns {object} Returns a node definition of the collider
@ignore @returns { object } Returns a node definition of the collider