Skip to main content

Questions tagged [curves]

Filter by
Sorted by
Tagged with
1 vote
0 answers
68 views

I'm new to Unity shaders and I'm using a Unity unlit shader to plot a function of x. For example, y = sin(x). This is very easy with the following code: ...
groszobquivousemmerde's user avatar
0 votes
0 answers
216 views

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
46 views

The polygons are small 3D parts of a quasi sphere centered in the origin and a solution that works in the plane can easily be made to work in this world. I tried to move the outline inwards by using ...
August2323's user avatar
1 vote
1 answer
247 views

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
98 views

I have a function Evaluate(), which is used to remap a noise value based on a curve/spline to make the noise more interesting. There are 3 inputs: the noise value ...
Shiv-iwnl's user avatar
0 votes
1 answer
238 views

I have a recoil system where per shot, the recoil value increases. I want the recoil to increase more quickly for the first 10 or so shots, then settle to a slower increase rate that then remains ...
Najo's user avatar
  • 1
0 votes
2 answers
371 views

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
0 votes
1 answer
298 views

How to Move object parallel to another on curved path on 2d space
0.0's user avatar
  • 1
0 votes
1 answer
1k views

What I want is to get path for DoTween method DoPath(), which as a parameter expects array of vectors shaping the direction of the path. I googled some stuff and found out nothing. Just think bezier ...
VPavliashvili's user avatar
1 vote
2 answers
3k views

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
0 votes
1 answer
335 views

I think that the animation curves in Unity lack the fact of being configurable because they are only chosen with a certain type (no sinusoidal function) and adjustable with handles. How in C # create ...
kaloprat's user avatar
  • 119
0 votes
0 answers
274 views

How can I make a rigidbody2d game object moving up curve like the attached screenshot?
Eddi's user avatar
  • 103
0 votes
1 answer
60 views

i'm trying to create a smothstop function i need it to control time variable on my lerp function used to move character and so on...what i have is this ...
mirkojpn's user avatar
0 votes
1 answer
477 views

so i been trying to find a way to shoot projectiles along a curve path . and i found this tutorial on youtube which was really good. i also uploaded the project in case you wanted to check it out. ...
h00man13's user avatar
1 vote
1 answer
1k views

I found this tutorial on youtube and it works pretty well, but I want to add more to it. How can I draw a smooth arc path in the game view (right now the path is only visible in the editor)? Here ...
h00man13's user avatar
2 votes
2 answers
1k views

I am trying to learn how to use AnimationCurve to change a float value over time. However i am not really sure how to do it Say i have the following class: ...
Marc Rasmussen's user avatar
8 votes
1 answer
458 views

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
1 vote
1 answer
167 views

I am trying to move points from a multi-segmented bezier curve to one end of the curve using the following code which modified for my use from here. Only the last segment seems to give the desired ...
Zizo's user avatar
  • 109
3 votes
1 answer
640 views

From the image below, A is an open bezier curve with it's points positioned to represent a circle. AP3 and AP1 have the same position. From B, How can I move the points (AP1 and AP3 along the bigger ...
Zizo's user avatar
  • 109
4 votes
1 answer
841 views

From the image below, I have represented a circle by a closed bezier curve made of two cubic bezier segments. I am aware that a bezier curve cannot represent a perfect circle. How can I calculate the ...
Zizo's user avatar
  • 109
0 votes
2 answers
263 views

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
3 votes
1 answer
566 views

* UPDATED 23/05/2018 * I've managed to implement road generation and curves using the techniques described here I made a short gameplay video. Hope it helps to anybody looking for answers.
Jh62's user avatar
  • 165
2 votes
1 answer
288 views

I am considering designing a Tetris game where instead of a traditional flat game board, the game will transform the board into different kinds of surfaces. I think I lack the appropriate mathematical ...
adapap's user avatar
  • 123
3 votes
1 answer
13k views

OpenGl is capable of rendering points, lines, triangles and quads; but what if i want to draw a bezier curve? I read online you should use something called GL_STRIP...
user avatar
4 votes
3 answers
1k views

For the GitHub Game Off Jam, I plan to create a small game with a boomerang. But I don't know how to build the equation that will update the boomerang position. I try to build a direction vector and ...
dwursteisen's user avatar
0 votes
1 answer
379 views

I'm creating an RPG game (using C# in Unity API) that uses a leveling system. I went to the Desomos Online Graphing Calculator and created the following curve representing the levels based on ...
Tanner Fix-It Smith's user avatar
4 votes
2 answers
545 views

I'm having trouble coming up with a formula/method of creating third person camera with a variable distance from the player given a specific camera pitch. This image shows something close to my ...
Saevax's user avatar
  • 251
0 votes
1 answer
652 views

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
0 answers
2k views

TLDR: How to query all nearest neighbors with the least effort? (Iterating over a bigger neighboring area that's continuous and filtering out elements that are not immediate neighbors?) Suppose the ...
sarasvati's user avatar
  • 121
2 votes
2 answers
1k views

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
8 answers
7k views

Is there any way to save an animation curve, such as using PlayerPrefs? I have this script that records animations at runtime as animation curves, but the curves in the Inspector reset each time the ...
Seyed Morteza Kamali's user avatar
3 votes
0 answers
343 views

I am having trouble detecting whether a ball is colliding with a red curve. The curve below is an example of what a user may draw on to the canvas. I can't think of any fast ways to detect collision ...
Thomasfb15's user avatar
4 votes
1 answer
611 views

I’m working on a video game where I need to display a map (in 2D) of an actual big European city (Paris, London, Madrid… that kind of big) and the player, displayed as a simple dot on the map, can ...
lvictorino's user avatar
  • 2,624
3 votes
1 answer
2k views

I'm implementing a touch controller for my game. I am attempting to imitate Tiki Taka Soccer's "ball shooting" controls (gameplay video), where the curvature of the player's swipe affects the curve ...
Stefan Doychev's user avatar
0 votes
1 answer
301 views

I have an in-place animation that I added curves to (In the rigged FBX which has the animation). I created 2 float parameters in the relevant controller with the same names as the curves in the ...
Gibtardo's user avatar
4 votes
4 answers
4k views

In a racing game, I have set up waypoints for the player to follow. I have added many waypoints to give an illusion of curved movement. However, the player car turns instantaneously when passing each ...
idurvesh's user avatar
  • 530
10 votes
5 answers
10k views

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
4 votes
2 answers
2k views

I just started using iTween as part of my day/night cycle. I'm trying to move the sun and moon along a curve, but I want have the sun/moon start at a specific location depending on the time of day. ...
eternal's user avatar
  • 341
0 votes
1 answer
364 views

I'm trying to find the best way to use collision detection for a rect moving in a curved path: here is example of what i have I found few methods and I have hard time to find what is the best way. I ...
user3689's user avatar
  • 857
0 votes
1 answer
158 views

How can I change the animation view in Unity3D? I have only some "dot", but I want to view some curve! How do I change this? What I have: And what I want: (image from the documentation of Unity3D)
Alaanor's user avatar
  • 77
0 votes
1 answer
3k views

well in short im looking for something like this as open source. https://www.youtube.com/watch?v=Cut3_A0Xm3Y i need to implement especially the Bezier curve editing in my app in open gl . any ideas ...
user3689's user avatar
  • 857
2 votes
2 answers
1k views

I am trying to generate a race track in Vertex Shader(constraint) and only using B-Spline/Bezier/Hermite curves. My problem is that when i try to widen the obtained curve by translating another ...
Rowan's user avatar
  • 23
0 votes
2 answers
262 views

I'm trying to make a simple pong clone and want the ball to curve when the racket was moving on hit. To test out curves I removed all the rackets and just have a ball bouncing around in a rectangle, ...
ekhaede's user avatar
1 vote
1 answer
2k views

I am trying to get a sphere curl based on the swipe. I know this has been asked many times, but still it's yearning to be answered. I have managed to add force on the direction of the swipe and it ...
gameOne's user avatar
  • 136
8 votes
4 answers
4k views

A friend and I are hoping to make a game in Unity in which you fly through an infinite 3D cave that can twist and wind in any direction (though obviously not to the point that the turns are impossible ...
richardmherndon's user avatar
0 votes
0 answers
78 views

Trying to implement a movement through a curve - I'm trying to find a type of curve/spline that interpolates constantly. What I mean: when I interpolate from t=0 to t=0.1, I want it be the same ...
luke1985's user avatar
  • 316
12 votes
1 answer
3k views

For a Peggle-like game, I want to make blocks that follow a curve, like this: The blocks would then disappear as the ball hits them. I managed to draw some horizontally, but I'm having trouble making ...
Moerin's user avatar
  • 181
0 votes
2 answers
202 views

I would like to achieve a smooth movement of a game object up and down. The way I have always seen this done is via a sine wave, and adding the value of y for a specified X to the game objects value ...
user1814893's user avatar
0 votes
1 answer
306 views

I am trying to create a animated butterfly i made this using the EP curve but when i try to revolve this it turns out to be this can anyone tell me what is the [roblem Thanks Akash
Deiknymi's user avatar
  • 111
0 votes
1 answer
2k views

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