Skip to main content

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.

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 ...
kyopa's user avatar
  • 133
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 ...
curiousCprogrammer1231's user avatar
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 ...
curiousCprogrammer1231's user avatar
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 ...
Evan C's user avatar
  • 1
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 ...
Jacko_256's user avatar
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
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 ...
Duy Hạnh Trần's user avatar
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 ...
Magikarp's user avatar
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 ...
olie's user avatar
  • 1
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 ...
user1535273's user avatar
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 ...
Hadestrb's user avatar
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 ...
Cyclone's user avatar
  • 41
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 ...
squiddingme's user avatar
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....
Liam D's user avatar
  • 41
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
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.
zeroflux's user avatar
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 ...
zwcloud's user avatar
  • 163
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
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), ...
Lim Ta Sheng's user avatar
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 ...
DataPools's user avatar
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 ...
Daniel's user avatar
  • 141
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 ...
user254545's user avatar
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 ...
Charles Cox's user avatar
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 ...
Sammy S's user avatar
  • 23
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 ...
Joey Grast's user avatar
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 ...
Horia Jurcut's user avatar
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 ...
Horia Jurcut's user avatar
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 ...
oxysoft's user avatar
  • 713
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 ...
GeoJohn's user avatar
  • 339
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 ...
Foaly's user avatar
  • 241
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
3 votes
1 answer
2k views

GPU friendly bezier storage/evaluation?

Let's say that you want to do bezier curve or surface evaluation on the GPU (fragment shader, geometry shader, compute shader, OpenCL, etc). Does anyone know of any interesting tricks of techniques ...
Alan Wolfe's user avatar
  • 2,353
1 vote
1 answer
148 views

Turn the front wheels of a car according to the car's bezier path

I have a 3D car which follows a predefined 3D Bezier path. I want the car's front wheels' rotation to match the car's changing direction. I had the idea to match the wheel's orientation to the ...
Bill Kotsias's user avatar
0 votes
1 answer
2k views

Switching bezierpath to follow SpriteKit swift

I am trying to make it so that a SKShapeNode follows a UIBezierPath. Then when the screen is tapped it switches to another UIBezierPath to follow. I have this functionality working except that when ...
PoKoBros's user avatar
  • 103
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
0 answers
881 views

Adding smooth round Bézier curve corners in unreal editor?

Unreal Editor offers rectangular and round geometry. It also offers boolean operations. I can make a smooth corner by playing around with cylinder and boolean operations. I really would like to make a ...
AturSams's user avatar
  • 10.5k
1 vote
0 answers
256 views

Cubic bezier polygon clipping

I have a large cubic bezier defined 2D polygon area which I need to render in DX11 real-time to create as many 4096x4096 textures as needed. An average control point count would be around the 12k and ...
BezierHelpMe's user avatar
5 votes
2 answers
2k views

How can I find the right UV coordinates for interpolating a bezier curve?

I'll let this picture do the talking. I'm trying to create a mesh from a bezier curve and then add a texture to it. The problem here is that the interpolation points along the curve do not increase ...
ssb's user avatar
  • 1,255
1 vote
0 answers
158 views

What's the equivalent of UIBezierPath in Cocos2d-x?

I'm beginner in Cocos2d-x , and i want to implement this tutorial with Cocos2d-x v.3 cpp, but the problem i dont know if there's UIBezierPath in cocos2d-x. Could you help me to draw the Bezier Arrow ...
yagoub's user avatar
  • 23
4 votes
1 answer
932 views

Cubic bezier for easing?

I would like to find out what Y is if X is a certain number from a cubic bezier curve to make a custom easing function, like it's done on this site: http://cubic-bezier.com/ Does anyone know a formula ...
user1974555's user avatar
0 votes
0 answers
199 views

Precalculating timespan of bullet collision on cubic bezier curve circles?

I'm fairly new to game logics, C#/XNA (The language/library of choice) and bezier curves in general, and is stuck in my current project. I'm going to try to explain as thoroughly as I can what the ...
user1974555's user avatar
3 votes
0 answers
456 views

How to fix problem in serpentine case using Blinn/Loop algorithm

I'm trying to implement Blinn/Loop algorithm to render cubic bezier on shader. I calculate the curve type using code below (v0, v1, v2, v3 are cubic bezier segment): ...
azer89's user avatar
  • 131
0 votes
1 answer
2k views

Rotating object along bezier curve: not rotating enough?

I tried to follow the instructions from the threads on the forum (Cocos2d rotating sprite while moving with CCBezierBy) with Unity, in order to rotate my object as it moves along a bezier curve. But ...
Paul's user avatar
  • 679
5 votes
3 answers
4k views

What is the simplest way to export a bezier curve created in Blender to a text file?

I have created a bezier curve in Blender. I'd like to export this curve to a text file. ...
tigrou's user avatar
  • 3,214
1 vote
2 answers
3k views

How to make a gui button follow a path after a touch?

I would like a button in my gui menu to follow a specific path if we selected it, I am wondering how I could do it: if we touch the button, then it can only move on the specific path, it is an arc ...
Paul's user avatar
  • 679
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
3 votes
1 answer
2k views

How do I render a filled and stroked path using OpenGL?

I want to render a 2-dimensional geometric path consisting of Bézier curves and straight lines. Paths can be concave. What is the most efficient way to draw this using modern OpenGL? Can I do this ...
Frederik's user avatar
  • 131
3 votes
2 answers
4k views

How to remove bezier handle in 3dsmax?

While editing spline, I need to make one of the vertexes to be an absolute corner. I.e. bezier control points should be in zero distance from the vertex. How to do that?
Suzan Cioc's user avatar
5 votes
1 answer
4k views

How to implement curved movement while tracking the appropriate angle?

I'm currently coding a 2D top-down car game which will be turn-based. And since it's turn-based, the cars won't be controlled directly (i.e. with a simple velocity vector that adjusts its angle when ...
Vexille's user avatar
  • 347
12 votes
3 answers
12k views

Collision detection with curves

I'm working on a 2D game in which I would like to do collision detection between a moving circle and some kind of static curves (maybe Bezier curves). Currently my game features only straight lines ...
paldepind's user avatar
  • 627

15 30 50 per page