Hello everyone! I am trying make my character move along the spline. I am building a 2.5D game and the player will have obstacles to pass. I thought a good approach of this would be to have the spline drawn on the XY plane (so, no depth on the Z axis) and have the character follow along the spline only on the X and Y coordinates.
You’re on the right track with the second screen shot. For the Z, you’d get the actor location and plug its Z axis in. The only problem is that would assume that the ground is perfectly constant and doesn’t change height at all. For a ground that changes in height, you’d have to do a line trace down from the spline or something, to get the Z axis value.
I think you’ve already guessed I am a beginner. Could you please explain (or link me to something explaining) what physics Unreal does for me, by default?
Hello again!
I have the following system for moving my player. I thought it would help me move the player on the spline I was talking about in this thread. So I have the player spline right here (the green one):
Unfortunately, I don’t think I can calibrate the torque so the player will stay on the spline, I think this is impossible. Could you give me some hints, please?