Collapsing a generic curve into a path graph help.
My problem is: the user draw generic path on a map and I must get this curve/line/path and "collapse"/approximate it to the paths (roads) on the map. I'm not asking for a direct easy solution, but I...
View ArticleMoving instantiated objects with variable speed along the same curve (with...
Alright guys, so for some reason I'm having a hard time figuring this out. The basic gist: I have a ton of prefab objects instantiating in the distance (460f Z axis) that move toward the player (at...
View Article2D simple road system with curves and intersections
Hi, I am creating a top-down map travel system for my game and I need a way to create roads on the map that the player avatar/icon can then follow: - Create simple curved roads (nothing fancy, just...
View Article[Question] Move object along curved path toward mouse in 2D, C#
How can I move an object along a curved path toward the mouse position programmatically? I want the boomerang to travel a curved path as its y position decreases, and moves towards the mouse. In this...
View Articlemoving linearly along a bezier curve
Ok so I had an idea for a way of moving linearly along a Bezier curve. I thought that if you plot a graph (in real life) that compares the value of t to the actual length you are along the curve, you...
View ArticleOverwrite DepthNormalsTexture
Hello, i have a problem with vertex offset and SSAO. The problem ground in curving the world, i'm offsetting all vertexes in the vertex part of the shader. But sins DepthNormalsTexture is written...
View ArticleHow to bend train wagon using Hermite Spline Controller in Unity3D 5?
I am making a Train Simulator using Unity3D 5 and i want to bend train wagon smoothly at curved track and back to normal at straight track , how to do it, please help. I am using [Hermite Spline...
View ArticleMaking a character walk on curved surface
Hi, I have a game idea, where I want a player to be able to walk on a certain shape called a mobius band (Sorry I can't attach a picture, please look it up, and you will have a much better idea what I...
View ArticleCurve/Bend Global fog
Any information on how to bend a global fog in a shape of parabola , because I use a shader which bends the world , but global fog goes straight ?
View ArticleDrawing & Moving Along a 2D Curved Path?
I want to create a system in which a player moves along a 2D path drawn by the mouse or on the touchscreen, similar to [Air Control][1]. While a [similar question has already been posted and...
View ArticleCreate a line renderer along a Bezier Curve/ Spline
I am mid level coder, this is the most complicated thing I have done and I feel like it was quite a jump from what I have previously done. I am working on a VR wizard game and one of the spells is...
View ArticleHow to calculate curvature of a path?
Hello, My question is a mathmetical question rather than unity, but while I am trying to calculate it in unity I think it is suitable to ask it in here. I am trying to calculate curvature of path that...
View ArticleHow to make spline and move object along the spline
I'm making a 2d game. I want to make an arrow flying, but I want to fly along the curve as shown below. But I do not know the exact method and ask questions. As shown in the figure below, the curve...
View ArticleHigh speed sliding (ski/sled) from curved slopes in a 2d game.
Hello! I have a problem with getting stable motion of a player sliding fast down the curved slope. The scene is simple: - rectangle with Capsule2D collider, rigidbody with mass of 50 - side view -...
View ArticleCalculating center line of curved pipe
I want to have have a disk move vertically through a curved pipe. The pipe's shape and size will stay the same, but the position and rotation in a 3d space will be random. Is it possible to calculate...
View ArticleCharacter moves along pre-defined path / curve
I'm making a yet-another-endless-run game. I know how to make my character ( which is now a cube with Rigid Body component attached ) moves along axis and changes its moving direction by Arrow keys....
View ArticleAccess curves presets from c#
Hi all, I was wondering if it was possible to have access from code to the default curve presets you can see when opening the curve editor. Thank you
View ArticleHow to create a Path
Hey guys I need some Help here. How to create a path for example to make a path in form of an 8 and when I am moving my character it will go only on this path. I don't want it to move automatic or to...
View ArticleInterpolating along an arc.
I am trying to move an object between two points along an arc with respect to another point. I have a starting point A, an end point B and third point C. I want to make my object move from A to B along...
View ArticleUnity2D - Add Curve on Local Position
Good early morning to all dev's out there, I seem to have an issue when it comes to the position curve in the unity2D animation. I wish to effect the position of an object, however whenever I do so. It...
View Article