How can I fit an imported mesh to a spline curve?
Let's say I have a bezier spline that I want to use to create some kind of road, path, fence, etc., but I don't want to program in all the geometry creation by myself. If I have a rectangular mesh of a...
View ArticleTell if a player is on a path
So I have a level with a path made out, but I don't know how to tell if the player is on the path. I could use a collider as a trigger on a player, but I'm not too experienced with triggers, and I...
View ArticleMove object on curve with same angle
I am trying to move my object on curve path that is simple animation not any physics implementation. I have already working of object on curve based path but can't able to find same movement angle. For...
View ArticleMove player forward On a curve
I want to move player on curved wires attached with the poles. The same look as in the game http://www.miniclip.com/games/bug-on-a-wire/en/. I have images for poles and wires and I tried to move camera...
View ArticleMove along a run-time generated path of varying length at a set speed.
I need to figure out how to move an object along a path a set distance or speed. For example, assume I have a curved path with a cube following that path. I want it to move 10 units along that path, or...
View ArticleCustom shader Curved Diffuse lighting not working
Hi guys, I'm getting mad with this. I'm using Unity 5 and I'm tring to resolve this problem from yesterday searching on Unity Answer or similar. Everything that I'm trying is not working and I don't...
View ArticleHow to generate a curve from a model ?
I have a road model which is a long looped curve made in Blender then exported to FBX. To make this model, I have created a path and then repeated a portion of road all over it. Now for my game, I need...
View ArticleI want my character to jump in a sort of arch path. is there a nice snippet...
I suck at coding and I'm trying to familiarize myself with the API. Personally, I would prefer that someone just show me the class(es) that allows me to do just this (in the API).A sort of, teach a man...
View ArticleMake a dynamic visual link between two game objects
I have two ships and a planet in between. I want to make a visual link between the ships but in a way that the link will arc around the planet, but not trough it. I also want this to be dynamic, for...
View ArticleCollapsing 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 Article