Grass like smoothing animation on beziercurve?

后端 未结 5 1787
终归单人心
终归单人心 2020-12-09 06:47

This is what I am trying to achieve--GRASS Animation(Desired animation)

This is where the project is standing currently --My hair animation

This is a more st

5条回答
  •  臣服心动
    2020-12-09 07:43

    Made this some time ago, might be useful to some people. Just adjust the variables at the beginning of the code with the values that fits your wishes:

    ...
    Mheight = 1;
    height = 33;
    width = 17;
    distance = 10;
    randomness = 14;
    angle = Math.PI / 2;
    ...
    

    Also on http://lucasm0ta.github.io/JsGrass/

提交回复
热议问题