UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

18 lines (13 loc) 363 B
import { threeUpdateTransform } from "../../util/threeUpdateTransform.js"; /** * * @param {Camera} camera */ export function update_camera_transform(camera) { const three_camera = camera.object; if (three_camera === null) { return; } three_camera.updateProjectionMatrix(); threeUpdateTransform(three_camera); }