UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

17 lines (14 loc) 382 B
import { TorusGeometry } from "three"; /** * * @param {number} radius * @param {number} arc * @returns {TorusGeometry} * @constructor */ export function CircleGeometry(radius, arc) { const geometry = new TorusGeometry(radius, 0.0075, 3, 64, arc * Math.PI * 2); geometry.rotateY(Math.PI / 2); geometry.rotateX(Math.PI / 2); return geometry; }