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
2
votes
2
answers
43
views
How to ensure smooth animation when making spline longer?
In Unity, I have a Spline that I'm using to move an object. During the game, the player can add new knots to this Spline as the object moves forward. e.g if they want the object to go right, they can ...
0
votes
1
answer
49
views
Is it possible to design character movement system with Bezier Curves?
For context, I'm trying to create a really dynamic and fast character. That can suddenly move slow, fast, zap into places, dash, and hover in place.
Say that I want to make a character accelerate a ...
0
votes
0
answers
47
views
How to make smooth movement for a tunnel traveling music game?
I'm creating a music game where the player travels inside a tunnel and can create twists and turns while listening to music. Here's a video showing what it currently looks like.
I'm looking for advice ...
0
votes
0
answers
78
views
How to efficiently path many objects to a moving point?
Working in 3D in the Godot engine, I have an object that moves through space and, like a tornado, is intended to pick up objects in its path.
What I have right now is janky, effectively re-baking the ...
1
vote
0
answers
134
views
How to smooth 2D procedurally generated terrain and create a collider from a Tilemap in Unity
I am making a 2D procedurally generated game like Terraria, and I want my terrain to be smooth similar to how games like Hill Climb Racing look. I have a Tilemap that renders my tileSprites and a 2D ...
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 ...
0
votes
0
answers
65
views
How to change the locomotive status from moving in a spline to moving in the next spline when it meets the next rail?
I want to make a train that can move in a curve. I have downloaded a Train Spline Walker unity package.
That package can generate a spline, and the train's locomotive will move in the spline with a ...
1
vote
1
answer
133
views
Getting coordinates within a bezier space
I have created an object that is comprised of two bezier curves (constructed of an identical finite segments equal to a variable named resolution). The two curves ...
0
votes
1
answer
146
views
Determine when object moving along Bezier Curve and an object along a line collide
I have been using the method here to find the intersection between a line and a curve but, I am not too sure how I would go about solving the time for when two objects moving along their respective ...
0
votes
0
answers
151
views
How to add a sine wave to a quadratic bezier curve?
I have a quadratic bezier curve, i want add a sine wave to it to animate it, simulate the grass animation. Currently i add the sine wave to P2.y and P3.y, but it don't look very nature. How to add the ...
0
votes
0
answers
87
views
Convert 3 2D-curves to a 3D-curve and How to calculate weight value of the animation curve in Unity?
I have 3 Hermite curves, including a position at the x, y, and z axes controlled by tangent and weight values. I knew that it is a 2D curve. now I can calculate the tangent from 1st derivative, but ...
1
vote
1
answer
54
views
How to insert a new control point on 3D cubic Bézier spline, without deforming current shape?
I have a spline generation system using a cubic Bézier algorithm.
I created a tool that splits the spline and adds a new point where the user clicked on the spline,
but it causes the spline to deform ...
2
votes
0
answers
152
views
What is meant by Blender's "Minimum" twist method/how do I correctly calculate bezier curve twists?
I'm working on a bezier curve implementation in Unity. Until recently, I had no need for roll (the objects that followed the curve always stood upright) but I've since added a roll value to each ...
3
votes
1
answer
285
views
How to navigate a moving 2d spaceship under newtonian mechanics to a point in space?
I am creating a real-time game where ships move through space using basic laws of motion. The ships move by rotating (instantly for our purposes) to an angle and then firing their engine to accelerate....
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.
...
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 ...