UNPKG

lingo3d

Version:

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

15 lines 662 B
import { onTransformEdit } from "../../events/onTransformEdit"; import getContext from "../../memo/getContext"; import eventSystem from "../utils/eventSystem"; export const [addCharacterCameraTransformEditSystem] = eventSystem((self, { target, phase, mode }) => { if (mode !== "rotate" || self !== target) return; const context = getContext(self); if (phase === "start") { context.lockTargetRotation = self.lockTargetRotation; self.lockTargetRotation = "follow"; return; } self.lockTargetRotation = context.lockTargetRotation; }, onTransformEdit); //# sourceMappingURL=characterCameraTransformEditSystem.js.map