- Home /
How to distort a plane
Basically, I want to distort a plane primitive. How do I edit the vertices at runtime? Any links/ideas/advice is welcome.
Comment
Best Answer
Answer by Eric5h5 · May 24, 2011 at 08:53 PM
Oh, just one more thing...how do you only modify some vertices, not all? What I mean is different behaviors for differnet vertices.
Um, the documentation page shows you how to edit all the vertices of a mesh, and in the example the vertices are moved in the direction of the vertex normal. If you don't want to modify all the vertices, replaced the for loop in the code example (which iterates over all the verts) with some code that accesses only the vertices you want changed.
Your answer