Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualcadjunkie

Posted 26 September 2013 - 09:25 AM

Quadratic Bezier curves are very simple to do with 3 points. The equation of the curve would be \( C(t) = P_0(1-t)^2 + 2P_1t(1-t)+P_2t^2 \) and you vary t from 0 to 1 to get the whole curve. You can design the curve to pass through your middle point, so you'll have to find the second control point. You can use the Hermite spline formulation to get that second control point.


#2cadjunkie

Posted 26 September 2013 - 09:21 AM

Hermite splines are okay, but quadratic Bezier curves are very simple to do with 3 points. The equation of the curve would be \( C(t) = P_0(1-t)^2 + 2P_1t(1-t)+P_2t^2 \) and you vary t from 0 to 1 to get the whole curve. 


#1cadjunkie

Posted 26 September 2013 - 09:20 AM

Quadratic Bezier curves are simple to do with 3 points. The equation of the curve would be \( C(t) = P_0(1-t)^2 + 2P_1t(1-t)+P_2t^2 \) and you vary t from 0 to 1 to get the whole curve. 


PARTNERS