UNPKG

mylingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

22 lines (17 loc) 553 B
import { CylinderGeometry } from "three" import { diameterScaled, radiusScaled } from "../../engine/constants" import Primitive from "../core/Primitive" import cylinderShape from "../core/PhysicsObjectManager/cannon/shapes/cylinderShape" const geometry = new CylinderGeometry( radiusScaled, radiusScaled, diameterScaled, 16 ) export default class Cylinder extends Primitive { public static componentName = "cylinder" protected override _physicsShape = cylinderShape public constructor() { super(geometry) } }