X-Git-Url: http://git.mutantstargoat.com?p=hair;a=blobdiff_plain;f=src%2Fhair.h;h=9ef5130499cba99497baf0d104f4d4491ba8d56e;hp=5ef54d0462462d1a18897aa7a9847feb3ee86c81;hb=a65a977df6fa8fee831c91cdc754d62e023b6630;hpb=b07896ffc92093a3e8adb4953d22927a5874e43d diff --git a/src/hair.h b/src/hair.h index 5ef54d0..9ef5130 100644 --- a/src/hair.h +++ b/src/hair.h @@ -4,6 +4,7 @@ #include #include "mesh.h" +#include "object.h" struct HairStrand { Vec3 pos; @@ -17,6 +18,7 @@ private: float hair_length; std::vector hair; Mat4 xform; + std::vector colliders; public: Hair(); @@ -27,6 +29,8 @@ public: void set_transform(Mat4 &xform); void update(float dt); + void add_collider(CollSphere *cobj); + Vec3 handle_collision(const Vec3 &v) const; }; #endif //PARTICLES_H_