Questions tagged [splines]
A spline is a sufficiently smooth polynomial function that is piecewise-defined, and possesses a high degree of smoothness at the places where the polynomial pieces connect.
46 questions
0
votes
0
answers
157
views
Moving SplineAnimate Objects Over Time With Proportional Speed
What I'm doing
I'm using Unity's Spline package and I'm trying to move SplineAnimate objects across a Spline, similar to a racing game's mini-map UI.
...
0
votes
1
answer
49
views
Computing camera attitude so points along/follows spline
Assuming I have a spline that I want a camera to follow, is there a simple way to compute the orientation of the camera such that its optical center aligns with the vector defining the derivative of ...
0
votes
0
answers
120
views
Implementing Intersection Logic and Mesh Construction for Procedural Spline-Based Roads in Unity
I’m currently working on a project in Unity where I’m creating procedural roads based on splines. At present, the roads are implemented by extruding a 2D shape along a spline or a straight line, ...
0
votes
0
answers
39
views
Getting 3D slide direction
I am trying to make my player slide down a curve (like a water slide) and so far I’ve managed to get the slide direction using the following code
...
0
votes
3
answers
506
views
Simulate Velocity For A Projectile Moving Along A Spline
I'm using Unity's latest Splines package(v2.5) to move a projectile across a spline with speed. It works perfectly and the projectile moves across the spline to it's target with linear speed.
But I'd ...
0
votes
0
answers
878
views
How to combine 2 splines from different spline container in unity spline 2.3.0?
I'm working on with Unity Spline 2.3.0, I realize that the splines cannot be touch and combine with other splines that exits in different spline container.
Is there any way to connect them?
I tried to ...
0
votes
0
answers
98
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 ...
1
vote
2
answers
2k
views
Unity Spline Animate reset the position when change the speed
I am exploring the Unity Spline package, and within the package, there is a sample scene called 'splineAnimate' where the SplineAnimate script is used to move an object along a spline. The script has ...
2
votes
0
answers
279
views
Can the Unity Splines package be used to define a region on the XZ plane?
Typically when I want to define an irregularly-shaped "area" in my 3D game (e.g. for events to trigger), I'll compose it using various 3D colliders and treat them as a group.
Something that ...
1
vote
1
answer
84
views
How to insert a new control point on 3D cubic Bézier spline, without deforming current shape?
I have a spline generation system using a cubic Bézier algorithm.
I created a tool that splits the spline and adds a new point where the user clicked on the spline,
but it causes the spline to deform ...
0
votes
0
answers
67
views
List<Vector3> of line segments (start, end position) from jointed CapsuleCollider chain
What I'm trying to do
I'm trying to create a list of positions which I can use to define a centripetal catmull–rom spline; however I can't think of a solution for creating the list of positions which ...
0
votes
0
answers
489
views
Performant way to generate a cylindrical mesh along a dynamic spline
I am working on a mobile game, in which I am tiling a cylindrical mesh along a dynamic spline. The points of the spline are changing each frame, so the vertex positions and normals of the tiled mesh ...
0
votes
0
answers
44
views
Rear Propulsion Steering Spline, or what is this called?
What I am looking for is essentially to know what this is, or what I can google to learn how to do it... unless of course the solution is simple.
You have an object at the start position facing a ...
0
votes
2
answers
342
views
Why do computer graphics applications use piecewise polynomial curves of degree 3 rather than curves of higher-order, say degree 100?
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.
0
votes
0
answers
457
views
How to create a 2d procedural spline based road with 2 edge colliders?
I am trying to make a top down 2d spline-based road that is procedurally generated and endless. The aim is that the player starts inside the road and has to navigate the road and if he touches any of ...