- Home /
Question by
raul corrales · Mar 18, 2011 at 12:48 PM ·
cubecreatevectorsusing
How I can create a cube using vectors?
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
Comment
This is an extremely under-defined question. "With vectors" is meaningless. You want these points to be corners of the final cube?
Answer by Jesse Anders · Mar 18, 2011 at 12:57 PM
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.
Your answer
Follow this Question
Related Questions
how to create a popping out object ? 2 Answers
create 3d model at runtime 1 Answer
obect will not appear in scene 0 Answers
Cycle Through Array - Change Values 0 Answers