提交 1a8328f5 编写于 作者: L looeee

Changed example code in CubicBezierCurve to use Vector2s

上级 3cc1126c
......@@ -22,10 +22,10 @@
<code>
var curve = new THREE.CubicBezierCurve(
new THREE.Vector3( -10, 0, 0 ),
new THREE.Vector3( -5, 15, 0 ),
new THREE.Vector3( 20, 15, 0 ),
new THREE.Vector3( 10, 0, 0 )
new THREE.Vector2( -10, 0, 0 ),
new THREE.Vector2( -5, 15, 0 ),
new THREE.Vector2( 20, 15, 0 ),
new THREE.Vector2( 10, 0, 0 )
);
var path = new THREE.Path( curve.getPoints( 50 ) );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册