Creating a spline curve between 2 points in Three.js

后端 未结 3 1897
孤街浪徒
孤街浪徒 2020-12-30 11:28

I\'m trying to link points with a spline using Three.js for a visualization I\'m trying to make.

As far as I can tell, I add points to an array, pass that to THREE.S

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 12:09

    The parameter of getPoint must be in range [0..1]:

    // Virtual base class method to overwrite and implement in subclasses
    //  - t [0 .. 1]
    
    THREE.Curve.prototype.getPoint = function ( t ) {
    ...
    

提交回复
热议问题