UNPKG

lingo3d

Version:

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

37 lines 1.11 kB
import AnimatedObjectManager from "./AnimatedObjectManager"; import { configPhysicsSystem } from "../../systems/configLoadedSystems/configPhysicsSystem"; export default class SimpleObjectManager extends AnimatedObjectManager { get scaleX() { return this.outerObject3d.scale.x; } set scaleX(val) { this.outerObject3d.scale.x = val; this.userData.physicsMode = undefined; configPhysicsSystem.add(this); } get scaleY() { return this.outerObject3d.scale.y; } set scaleY(val) { this.outerObject3d.scale.y = val; this.userData.physicsMode = undefined; configPhysicsSystem.add(this); } get scaleZ() { return this.outerObject3d.scale.z; } set scaleZ(val) { this.outerObject3d.scale.z = val; this.userData.physicsMode = undefined; configPhysicsSystem.add(this); } get scale() { return this.scaleX; } set scale(val) { this.scaleX = val; this.scaleY = val; this.scaleZ = val; } } //# sourceMappingURL=SimpleObjectManager.js.map