X-Git-Url: http://git.mutantstargoat.com?p=hair;a=blobdiff_plain;f=src%2Fhair.h;h=be979ee6374daa9b3bdce779678d4b224a1b1c97;hp=19fa82ec8bbda3664be008bd878b9690bd25baf5;hb=ed91d376224c1efe305d483c05f837820df75b71;hpb=43078ddde36cc81375cddfe45f47f806b9d19307 diff --git a/src/hair.h b/src/hair.h index 19fa82e..be979ee 100644 --- a/src/hair.h +++ b/src/hair.h @@ -5,10 +5,19 @@ #include "mesh.h" +struct HairStrand { + Vec3 pos; + Vec3 velocity; + /* directions relative to the spawn point */ + Vec3 anchor_dirs[3]; + Vec3 spawn_pt; + Vec3 spawn_dir; +}; + class Hair { private: - std::vector spawn_points; - std::vector spawn_directions; + float hair_length; + std::vector hair; public: Hair();