fix bug with max thickness and shoulder
Fix comparing local direction with world vector