|
I want to create a cube primitive and scale and re position a single face of the cube while the opposite side stays stationary. Im sure i can figure out a way to directly manipulate the vertices of the cube, but I was hoping it would be easier to just perform a local scale and position on the entire face instead of worrying about re-positioning each vertex manually.
(comments are locked)
|
|
I would think that the most easy way would be to modify the vertices. Take a look at my blog post about creating procedural mesh in Unity - that should get you started: http://blog.nobel-joergensen.com/2010/12/25/procedural-generated-mesh-in-unity/ Looks like a nice example. Also, for reference, see the Mesh docs here.
Jul 13 '11 at 04:36 PM
Chris D
Ok so I have an array that holds the vertices I want to manipulate, intelliSense isnt showing anything that allow me to perform a local scale on just those vertices. Any ideas?
Jul 13 '11 at 04:51 PM
michael 4
There isn't a convenient command for this kind of thing (that I know of) unfortunately. If you use Vector3.Scale relative to the centroid of the face, that might work. What I mean is:
Jul 13 '11 at 05:34 PM
Chris D
(comments are locked)
|
