Download

Roller Coaster: What is the best way to animate an actor on a spline path?

So I want to create a roller coaster (specifically for Oculus Rift). I already have a basic spline path + track laid out, but I don’t know how to go about animating a cart being attached to the spline.

If anyone has an idea, it would be much appreciated. Also, if there is any coding involved, I’d prefer Blueprint because I do not know C++.

I’m also interested in doing something like this and have thought of the same question.

Do you import your spline/track from your 3D modelling software or did you create it in UE4?

I made a single track piece in blender and imported into UE4 and added it as a model for the spline.

This is what it looks like so far.

http://puu.sh/8qtMv

Hey darkpivot -

Looks like a really good start you have. You might want to try going into Blender and modeling your cart in the same file as the reference spline you are using and then add a single bone weighted to the whole cart animate the bone along the reference spline then import the cart as a skeletal mesh and the animation will automatically come over with the cart model. If you are wanting this to be in first person you could also animate a camera along the spline, again in Blender, and then import the camera movement directly into Matinee (here is a link for that process: https://answers.unrealengine.com/questions/9061/request-fbx-camera-import.html). One caveat, I have only tried this in 3dsMax and Maya, but there should be no reason for this not to work in Blender as well.

Let us see what you get when everything’s together and as always if you are still having problems let us know,

Eric Ketchum

The spline was made in UE4 though, with the terrain tool. I’m not sure how I would go about doing a spline in Blender actually.

Anyone have any ideas? I’m still stuck on this.

Hi there,

One thing you could try is to just create the spline in UE4 Matinee. Check out this tutorial for more details on doing that if you like.

We often animate cart paths this way and then attach things like cameras or even other objects to the cart moving along the spline.

Also - if you just need a moving Camera on that Spline Matinee is the sure fire way to go.

Shout and let me Know if this helps at all.

Thanks,

Grayson

Splines are certianly a feature I miss terribly from UE3/UDK.
I’m struggling to develop a good AI traffic/race path system without them. :confused:
Will we ever see them decoupled from the Landscape and given proper access in Blueprints, etc?

Hey Tom,

Adding SplineComponents to Blueprints is definitely something that we want and is on our agenda, but it is far from being an immediate goal.

Interestingly, one of our custom licensees has already modified the source code to create these for themselves. If we get a hold of that code and can integrate is, it may rapidly speed up the process.

Cheers!

I’m waiting for splines as well just to let you know :wink: it’s really helpful when creating generated content where something need to move with a specific path.

Got this plugin working last night, seems like a good place to start with creating a Rollercoaster UE4 Tutorial: Rollercoaster Plugin - YouTube