x


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

more ▼

asked Mar 18 '11 at 12:48 PM

raul corrales gravatar image

raul corrales
268 25 28 34

This is an extremely under-defined question. "With vectors" is meaningless. You want these points to be corners of the final cube?

Mar 18 '11 at 02:54 PM flaviusxvii
(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

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.

more ▼

answered Mar 18 '11 at 12:57 PM

Jesse Anders gravatar image

Jesse Anders
7.3k 7 17 48

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x298
x145
x31
x18

asked: Mar 18 '11 at 12:48 PM

Seen: 1252 times

Last Updated: Mar 18 '11 at 12:48 PM