Skip to main content

All Questions

Tagged with
0 votes
1 answer
143 views

Inconsistent Speed Of A Projectile Traveling On A Bezier Curve

What I'm doing: I'm moving a projectile to it's target along a Bézier curve with one control point. The projectile moves from Transform A to ...
PayasoPrince's user avatar
1 vote
0 answers
120 views

how can I normalize the speed of a polygon moving over a series of connected quadratic bezier curves with varying lengths?

I am generating a bunch of quadratic curves that are connected together, creating an array of curves, and a function which returns the position on the curve for a given time. ...
patrick's user avatar
  • 209
8 votes
1 answer
377 views

How to move a portion of bezier/spline curve along its complete bezier/spline curve?

Based on the image below, I have a curve (orange) which is a bezier sub-curve of an original curve (longer black curve). The original curve consists of a number of cubic bezier curves joined together. ...
NotEveryDay's user avatar
0 votes
1 answer
2k views

How to calculate normal vector of a Bézier curve?

How I can calculate the normal vector for two dimensional Bézier curve? (I have the control points of the curve in the x y plane)
rasha's user avatar
  • 1
4 votes
2 answers
2k views

Controlling roll rotation when travelling along bezier curves

I am currently working on a curve implementation for use in Unity which includes an editor: The aim is to get an object to follow the path represented by the curve at a constant velocity. Currently ...
Jkh2's user avatar
  • 584
2 votes
2 answers
1k views

Bezier curve not drawn correctly

I'm trying to draw a bezier curve using 3 points. If I use the quadratic form: I get this result: And I believe it's correct. Now since I need to draw it with a variable number of points, I'm ...
Ramy Al Zuhouri's user avatar
6 votes
2 answers
322 views

How do you calculate if a line is facing a curve?

Given the 2 points describing a line segment, and the 3 points describing a quadratic bezier curve, how do you calculate if the line is facing towards or away from the curve? The line has a fixed ...
Robin Rodricks's user avatar
15 votes
4 answers
1k views

How do you calculate the nearest point on 2 curves?

Given the points of a line and a quadratic bezier curve, how do you calculate their nearest point? .... Similarly, given the points of 2 curves, how do you get the nearest point?
Robin Rodricks's user avatar
10 votes
2 answers
389 views

How do you calculate if 2 lines are facing toward or away?

Given the 4 points describing 2 line segments, how do you calculate if line A is towards or away from line B? The 2 lines have a fixed length, and can be measured as distance from x1/y1 to x2/y2.
Robin Rodricks's user avatar
27 votes
4 answers
29k views

Bezier curve arc length

See also: same question on Math.SE How can I find the arclength of a Bezier curve? For example, a linear Bezier curve has the length: ...
Mateen Ulhaq's user avatar