lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
18 lines • 707 B
JavaScript
import { configPhysicsSystem } from "../../systems/configLoadedSystems/configPhysicsSystem";
import getAllSelectionTargets from "../../throttle/getAllSelectionTargets";
export default ({ phase, mode }) => {
if (phase !== "end")
return;
if (mode === "scale") {
for (const target of getAllSelectionTargets()) {
if (!("object3d" in target))
continue;
target.userData.physicsMode = undefined;
configPhysicsSystem.add(target);
}
return;
}
for (const target of getAllSelectionTargets())
"object3d" in target && configPhysicsSystem.add(target);
};
//# sourceMappingURL=updateSelectionManagersPhysics.js.map