mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
13 lines • 515 B
JavaScript
import { SphereGeometry } from "three";
import Primitive from "../core/Primitive";
import { radiusScaled } from "../../engine/constants";
import sphereShape from "../core/PhysicsObjectManager/cannon/shapes/sphereShape";
export const sphereGeometry = new SphereGeometry(radiusScaled, 32, 32);
export default class Sphere extends Primitive {
static componentName = "sphere";
_physicsShape = sphereShape;
constructor() {
super(sphereGeometry);
}
}
//# sourceMappingURL=Sphere.js.map