mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
17 lines (12 loc) • 498 B
text/typescript
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 {
public static componentName = "sphere"
protected override _physicsShape = sphereShape
public constructor() {
super(sphereGeometry)
}
}