UNPKG

mylingo3d

Version:

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

11 lines (8 loc) 345 B
import PhysicsObjectManager from "../.." import getActualScale from "../../../../utils/getActualScale" import loadCannon from "../loadCannon" export default async function (this: PhysicsObjectManager) { const { Sphere } = await loadCannon() const shape = new Sphere(getActualScale(this).x * 0.5) this.cannonBody!.addShape(shape) }