kfarr / magic-matta

🏳️‍🌈Magic Matta renders "magic carpet" style games🚌and experiences for children🧒

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use spread syntax for ortho camera calculation arguments

kfarr opened this issue · comments

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
Use Spread syntax instead of pulling out each item in array

this.orthoCamera = new THREE.OrthographicCamera(orthoCoords[0],orthoCoords[1],orthoCoords[2],orthoCoords[3],orthoCoords[4],orthoCoords[5]);