Zip up your submissions with your NYU id as the file name (e.g. rn47.zip) and upload them to this google drive folder by next class. Do not include the Library, Temp or Logs folders from your Unity projects or your zip file will be gigantic! Include only the following files and folders in your submission (your .sln file will be named differently):

Remember that your best efforts and attempts are what counts the most! We will discuss this on Monday.

ITS-A-ME, MESH API

Your homework is to use Unity's Mesh API to recreate this iconic interaction from Mario 64.

  1. Use this mesh and texture as your mario head.
  2. Instead of a cursor push / pull interaction you can just make a sphere that pulls Mario's face around.
  3. Have some kind of a "reset" that causes Mario's face to go back to normal. This could be a button, or when the sphere goes out of range.
  4. Try and make the affected vertices local like in the original so that not all of the vertices get pulled at the same time.
  5. Remember to check Read/Write on the model asset's inspector so you can get access to the vertex array.
  6. BONUS try and make it work with a push / pull interaction using the mouse.
  7. HINT it might be useful to save the original vertex positions somewhere before you start messing with the mesh.

I'm going to ask you to make a Unity project from scratch again. Remember some key things from class:

// get access to the mesh in the mesh on the MeshFilter component
Mesh mesh = GetComponent<MeshFilter>().mesh;

// read the vertex positions
mesh.vertices

// write back the vertex positions
mesh.SetVertices()