Questions tagged [beziers]
Parametric smooth curves and surfaces in computer graphics. Bezier curves and surfaces have control points that are used to control their shape. They are frequently used in software for automotive and industrial design.
59
questions
0
votes
2
answers
302
views
Why do computer graphics applications use piecewise polynomial curves of degree 3 rather than curves of higher-order, say degree 100?
just wondering why is that? can't get my head around it. wouldn't the use of degree 100 be better? I'm really new to this stuff.
1
vote
2
answers
3k
views
How to convert Unreal Engine 4 spline to a bezier curve?
I have read the source code of USplineComponent and found that for a curve in Unreal, the result is calculated via ...
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. ...
0
votes
1
answer
217
views
2D Rotation of an object along a curve line
I would like to rotate an object along a curve. I managed to move the object along the curve using bezier curve algorithm. The hard part is to rotate the object constantly(no limit on maximum angle), ...
0
votes
2
answers
159
views
How do I determine the slope of a curve?
I am making a 2D game where the character rides on the curve of a graph. I need to find out whether the player is going uphill or downhill and calculate speed accordingly.
The problem is that I am ...
0
votes
2
answers
3k
views
What is the best way to code grinding for a skate game in Unity?
I am making a inline skate game, what could be the best method to code the grinding system, there are many various and complex stuff to use but what could be used to set it up simple and not that ...
1
vote
1
answer
542
views
Obstacle avoidance in Bezier Curves
I use an A* algorithm to find a path voiding obstacles. On obtaining the path it would be a good idea to reduce the number of points. Then I would like to typically do a spline interpolation or Bezier ...
0
votes
1
answer
597
views
Create Bezier curves with random heights that connect
In unity, I am trying to create several curved platforms that connect using bezier curves, however I am having issues. I understand the basics of genertating a bezier curve and I have something ...
2
votes
1
answer
2k
views
Consistent normals at any angle in bezier curve
Could not work out or find any solution for this.
I have a spline which consists of bezier curves (in 3d space) — in fact, any straight line will also have such problem.
I take a point on the curve ...
0
votes
1
answer
1k
views
Moving object beyond Bezier Curve
I am currently developing small 2D game in Unity, in which player is using swipe to create objects paths. I already did almost everything, but I hit a wall which i cannot pass. The thing is, that when ...
0
votes
1
answer
1k
views
Unity: How to cut a line (or curve) at a specific point and animate it?
What would be a good approach to cut a line (or curve) at a specific point (let's say we use the mouse pointer to detect the position of the cut).
The curves you see in the image above, are Bezier ...
3
votes
1
answer
3k
views
What type of Collider should I add to a LineRenderer?
I am currently building a game where I need to generate some wires (as Bézier curves) using LineRenderer. After changing the width of each line
...
2
votes
2
answers
1k
views
How do you solve where the camera should be on a bezier curve depending on player? (camera on rail)
I am writing a game where I require a camera on rail; That is, the camera's path is fixed and follows a bezier curve. However, I cannot find any resources online for solving the closest point on a ...
0
votes
1
answer
6k
views
How to tween to move an object in arc?
Okay, so I think I need to use a tween in order to move an object in my game. I have some little green dudes that need to move in an arc (bezier) to a location that is clicked by the user. My game ...
10
votes
5
answers
9k
views
Points evenly spaced along a bezier curve
I have looked around for a while and I can't find a solution to this problem.
Let's say I have a cubic bezier curve (defined by 4 points) and I want to get a set of points that are spaced evenly along ...