mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
9 lines (7 loc) • 320 B
text/typescript
import PhysicsObjectManager from "../.."
import getActualScale from "../../../../utils/getActualScale"
import loadCannon from "../loadCannon"
export default async function (this: PhysicsObjectManager) {
const { Sphere } = await loadCannon()
this.cannonBody!.addShape(new Sphere(getActualScale(this).x * 0.5))
}