MCBE's Vector3 type looks like this: {x,y,z}
Popular vector libraries (like glMatrix) use an array type that looks like this: [x,y,z]
Uh oh, type mismatch... 💔
So I created this package, which contains small utilities to convert {x,y,z} to [x,y,z]
and vice versa. 👍
I also added a hybrid class that can behave as both {x,y,z} and [x,y,z] with one instance,
and it feels so good to use. 😩
Run the following command in your project directory to install vecarr:
npm install @mcbe-toolbox-lc/vecarr --save-devAlso, I highly recommend builder as a build tool. 🛠️