Search the Community
Showing results for tags 'curve3 continue'.
Found 1 result
Starting point of curve3 when using continue
JohnK posted a topic in Questions & AnswersHaving created three Bezier curves Attempt 1 var curve_0 = BABYLON.Curve3.CreateCubicBezier(start_0, control1_0, control2,_0 destination_0, nb_of_points);var curve_1 = BABYLON.Curve3.CreateCubicBezier(start_1, control1_1, control2,_1 destination_1, nb_of_points);var curve_2 = BABYLON.Curve3.CreateCubicBezier(start_2, control1_2, control2,_2 destination_2, nb_of_points);I then formed a new curve by joining them together using. var myFullCurve = curve_0.continue(curve_1).continue(curve_2);However as start_1 and start_2 where not the origin (0,0,0) myFullCurve had kinks in it. By ensuring that curve_1 and curve_2 started at (0,0,0) using Attempt 2 var curve_0 = BABYLON.Curve3.CreateCubicBezier(start_0, control1_0, control2,_0 destination_0, nb_of_points);var curve_1 = BABYLON.Curve3.CreateCubicBezier(start_1.subtract(start_1), control1_1.subtract(start_1), control2_1.subtract(start_1), destination_1.subtract(start_1), nb_of_points);var curve_2 = BABYLON.Curve3.CreateCubicBezier(start_2.subtract(start_2), control1_2.subtract(start_2), control2_2.subtract(start_2), destination_2.subtract(start_2), nb_of_points);I obtained a continuous curve. I read in this topic that there was a suggestion by Jerome to and gathered from the date (16 Mar 2015) curve3 and continue are recent additions. Now using subtract.start to create the curve does not require you to know start but you do have to handle it. Have I misunderstood something or applied continue incorrectly or was it the intention that something like Attempt 1 should have formed a continuous curve and does not as yet do so?