Hi Everyone - I come in an hour in need after spending many many days trying to fix the issue myself.
I am working on a simple grinding system using splines. When the actor locks to the spline they move along it without issue - if the spline is horizontal.
Unfortunately if the spline is rotated up or down the actor suddenly jets off to the sky. This even happens with the actor approaching the rail to grind down - some unknown force drags the actor up the rail.
I have looked for every single node which may be producing the force without luck. Gravity is set to zero, there are no forces being applied during the grind.
I am using a flying character blueprint. Gravity is turned to 0 on lock and during grind (changing gravity does not help) / (adding forces and impulses to counter the movement creates bugs such as building up a huge velocity)
I’ve been working on the code for 2 weeks and have exhausted literally all other avenues. One option is to move the player along the spline using ‘spline distance plus 1’ but I lose the physics I am looking for (gaining speed grinding down etc).
Could anybody give me their two cents on what may be causing the issue - I would be eternally grateful as I’m at the end of me tether with it
NOTE: - Red arrow is velocity direction, White Arrow is Capsule Direction and Yellow is controller Direction
Video of problem:
Locking on blueprint:
Grind Loop: