How I can create a cube using javascript with vectors?
Example:
a= new Vector 3(0,0,0);
b= new Vector 3(0,0,1);
c= new Vector 3(1,0,0);
Thanks
How I can create a cube using javascript with vectors?
Example:
a= new Vector 3(0,0,0);
b= new Vector 3(0,0,1);
c= new Vector 3(1,0,0);
Thanks
If you mean a cube mesh, check out the documentation for the Mesh class in the Unity script reference, and (if you need further examples) the 'procedural mesh' example project on the Unity website.