Replaced the collision detection with a check of the angle
authorEleni Maria Stea <estea@igalia.com>
Sat, 26 Jan 2019 18:51:42 +0000 (20:51 +0200)
committerEleni Maria Stea <estea@igalia.com>
Sat, 26 Jan 2019 19:00:30 +0000 (21:00 +0200)
commit8efb44efc8830ffc5ae8eb387926f8b4fd00fb6e
treeeb7806a31cc27121e42cda611ed1511195f8ad36
parentc595e4a5c4d54f24af1357816a1baecfdeb7d25e
Replaced the collision detection with a check of the angle

Instead of performing collision detection with a sphere, I now calculate
the dot product between the normal and the hair and if it's negative (=>
the hair falls inside the head) we calc the projection of the hair on
the head and find the new position from that.
src/hair.cc
src/main.cc