Search Unity

Getting mesh data back from Cloth

Discussion in 'Scripting' started by Tinus, Oct 18, 2010.

  1. Tinus

    Tinus

    Joined:
    Apr 6, 2009
    Posts:
    437
    Does anyone know if there is a way to retrieve information like normals or vertex positions from a mesh once it has been deformed by cloth physics? Getting interactiveCloth.mesh.normals just returns the normals from the non-deformed mesh, which is not what I want. I thought retrieving these properties would not be a problem since cloth is still simulated on the CPU, but no dice it seems?

    My goal is to analyze the shape of the deformed mesh for aerodynamic properties, so I can make this cloth-rigged wingsuit actually fly: http://www.youtube.com/watch?v=Os1y6FT5_RA :)

     
    Last edited: Oct 18, 2010