How 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 ArticleRandom 2D Curve Movment
I have a special bullet for my boss and I want to get the bullet to move in curves, but randomly and I'm not really sure how to achieve this. [Example Image][1] Something like that with the 2 coloured...
View ArticleMove Rigidbody along curve
Hi, I've been stuck on this for a little while now. I have made a curve in my scene, and I have 50 locations along the curve. The thing I want to achieve is that my Rigidbody GameObject moves along...
View ArticleHow to apply collision detection to a Circular (round/curvy) Labyrinth
We're using **Unity 2017.30f3** and we're building a labyrinth game. (We are remarkably new users and working on a project to learn Unity) We built the labyrinth using this image: [Rounded labyrinth]...
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 ArticleHow 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 Article