X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fhair.h;h=9ef5130499cba99497baf0d104f4d4491ba8d56e;hb=a65a977df6fa8fee831c91cdc754d62e023b6630;hp=23aff83e92a68dc5e3d982f473a30680267374c1;hpb=2c4aeaa83ca06d604c084f1fe146ee7f51e30f90;p=hair diff --git a/src/hair.h b/src/hair.h index 23aff83..9ef5130 100644 --- a/src/hair.h +++ b/src/hair.h @@ -4,12 +4,11 @@ #include #include "mesh.h" +#include "object.h" struct HairStrand { Vec3 pos; Vec3 velocity; - /* directions relative to the spawn point */ - Vec3 anchor_dirs[3]; Vec3 spawn_pt; Vec3 spawn_dir; }; @@ -19,6 +18,7 @@ private: float hair_length; std::vector hair; Mat4 xform; + std::vector colliders; public: Hair(); @@ -28,6 +28,9 @@ public: void draw() const; void set_transform(Mat4 &xform); + void update(float dt); + void add_collider(CollSphere *cobj); + Vec3 handle_collision(const Vec3 &v) const; }; #endif //PARTICLES_H_