Hi, I’m new with UE5 and was trying to replicate some 2.5D gameplay from a few games, I have a simple blueprint setup to move the Player from left to right through a spline controlling the Player never moves out the spline. My issue is that if the spline points height is 0 (all the spline points are in the same height), the code works and the character can be moved through the spline by only following X and Y axis (ignoring the Z to be able to jump, etc) but for some reason when I move any spline point (to have more visual control of the path when designing a level) the character starts getting stuck or just glitching between the different spline points. I’m attaching my blueprints setup and as I’m new and can’t attach a video, there is a link to it: https://drive.google.com/file/d/1ltFDXYO1WmvJCTehxazha_gVJE2wuDNz/view?usp=drive_link. Thanks!
Try to ignore Z from player input also since you are getting a direction from spline.
In addition do normalize output vector before ignoring its Z
1 Like
Still getting the same issue, probably because I’m still updating Player’s position to match the spline and its own Z axis in the tick event. I’ll play around with it. Thanks for tha answer!
No worries I am not sure this tangent will work in long term, think it can fail.
If you are trying to put player on dedicated rails movement on a spline.
Maybe getting something like below can be more efficient in that terms. Always get a point infornt of player at a distance and request a direction to that.
good luck!