Added clamping to curves. Not used yet
Merge branch 'master' of github.com:playcanvas/engine