on rail game??

Hey guys, it’s my first post on here so be kind :slight_smile:

I searched but didn’t find much help or maybe I missed it.

Anyway I’m looking to create an on rail game. I don’t think automating the objects forward movement will be hard but I just can’t for the life of me figure out how to get the camera to be fixed behind it and moving forward instead of following the player’s avatar around.

Any idea how I’d do this??

Thanks.

I guess your camera is child of the player and follow movements and rotation, which you do not want. To fix that, you need to unchild the camera and move it by script. That way, the rotation is untouched. And you can even add a delay, so the camera don’t follow perfectly, which would be more realistic I suppose.

You can use the Spline Controller package