UNPKG

mylingo3d

Version:

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

11 lines (9 loc) 347 B
import PhysicsObjectManager from "../.." import getActualScale from "../../../../utils/getActualScale" import loadCannon from "../loadCannon" export default async function (this: PhysicsObjectManager) { const { Box } = await loadCannon() this.cannonBody!.addShape( new Box(getActualScale(this).multiplyScalar(0.5) as any) ) }