Skip to main content

All Questions

Tagged with
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
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
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
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
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
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
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
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

15 30 50 per page