{"size": 383, "ext": "js", "max_stars_repo_path": "space/src/objects/sphere.js", "max_stars_repo_name": "fanczy/babylon", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "space/src/objects/sphere.js", "max_issues_repo_name": "fanczy/babylon", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "space/src/objects/sphere.js", "max_forks_repo_name": "fanczy/babylon", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 47.875, "max_line_length": 96, "alphanum_fraction": 0.7493472585}
import mainScene from '../scenes/main-scene.js'
import { setMeshPositionAndMaterial } from '../helpers/creation-helper.js' 

export const createSphere = (id, diameter,  positionVector, material) => {
    const sphere = BABYLON.MeshBuilder.CreateSphere(id, {diameter: diameter || 100}, mainScene);
    setMeshPositionAndMaterial(sphere, positionVector, material);
    return sphere;
}