Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating splines at run time
#1
Hi,

I'd like players to be able to place stations and then as a simple step at this early stage, have a spline automatically drawn between the stations at run time.

Should this be fairly easy to accomplish? Just work out the vector between point A and B and make it create a spline?

How can I then have it generate a mesh on this? I've had a play with the generator which is very powerful but obviously at run time I'd need a saved template to be accessed and used to create railway track, can this be done in some way?

Thinking ahead though, where I'd like players to lay track how they like, would it be possible to create prefabs of sections of track (straights, curves etc) with a spline and control point on each gameObject, then lay these down on a grid system with the pieces of track creating a joined spline when placed next to each other? Or would you go about it a different way where they draw the track in a similar way to the "paint splines" example?

Sorry for so many questions, once I'm off in a direction that will work hopefully I won't need to keep bothering you Big Grin  Thanks again.
Reply


Messages In This Thread
Creating splines at run time - by jamesunity - 07-16-2020, 08:35 AM
RE: Creating splines at run time - by _Aka_ - 07-16-2020, 10:47 AM
RE: Creating splines at run time - by jamesunity - 07-16-2020, 06:12 PM
RE: Creating splines at run time - by _Aka_ - 07-16-2020, 06:54 PM
RE: Creating splines at run time - by jamesunity - 07-16-2020, 07:40 PM
RE: Creating splines at run time - by _Aka_ - 07-16-2020, 08:02 PM
RE: Creating splines at run time - by jamesunity - 07-17-2020, 10:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connections Between Opposing Splines lockiidraws 1 800 12-04-2025, 02:14 PM
Last Post: _Aka_
  Spawn at start/ end of splines rickgplus 4 3,233 03-21-2025, 12:34 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 2,016 03-18-2025, 10:11 PM
Last Post: _Aka_
Smile Simple splines movement shills 3 3,560 02-26-2025, 09:40 AM
Last Post: _Aka_

Forum Jump: