UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

13 lines (10 loc) 236 B
/** * * @param {Object3D} m * @param {Transform} t */ export function copy_transform_to_threejs_object(m, t) { m.position.copy(t.position); t.rotation.toEulerAnglesXYZ(m.rotation); m.scale.copy(t.scale); }