UNPKG

lingo3d

Version:

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

27 lines 649 B
import settings from "../api/settings"; import Cube from "../display/primitives/Cube"; const ground = new Cube(); ground.width = 9999; ground.depth = 9999; ground.y = -200; ground.physics = "map"; ground.metalness = 0.5; ground.roughness = 0; settings.ssr = true; ground.hitTarget = "box"; ground.onHitStart = (item) => { item.color = "red"; }; ground.onHitEnd = (item) => { item.color = "white"; }; // timer(100, -1, () => { // let box = new Cube() // box.y = 200 // box.physics = true // box.id = "box" // // setTimeout(() => { // // box.dispose() // // }, 10000) // }) //# sourceMappingURL=testPhysX.js.map