I am very new to Unreal engine (using v5.1), and I’d like to create a proof-of-concept cycling game.
I want to use procedural terrain generation and create for that project one road, most probably using landscape splines.
My question is the following:
Given that the player controls the game using an indoor trainer (I get the power produced on the bike as only player input),
Could you advise me on a system for “guiding” my cyclist ?
I would like him to always follow the road
So it’s looking like you’re going to be looking at learning a little more about those splines! You can get anything to actively follow a spline, so that’s definitely going to be your way forward since you’re already going to be using them! I wasn’t able to find anything SPECIFICALLY about that, but it’s practically always included as part of the tutorial for something else that requires it.
Here’s some recommended reading/interactive material.
It’s very possible. You would just keep the actor’s root in the middle, following the spline, and move the camera and character left or right!
Think of Starfox or something similar. That’s completely spline movement. The ROOT of Fox’s ship is in the middle of the screen typically, and is limited from going too far from the root, but the root is actually what’s moving forward and the ship is a child of the root. See where I’m going here?
Same concept, but just left/right, no up/down!
In fact, if you could find something like a starfox tutorial that might give you all the knowledge you’d need!