X-Git-Url: https://eleni.mutantstargoat.com/git/?a=blobdiff_plain;f=src%2Fhair.h;h=be979ee6374daa9b3bdce779678d4b224a1b1c97;hb=ed91d376224c1efe305d483c05f837820df75b71;hp=19fa82ec8bbda3664be008bd878b9690bd25baf5;hpb=da5cbacf755273da510c37c819a59c7fe9894c4e;p=hair 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();