I’m trying to create a snowboarding game and right now i have some of the movement down. To do this i’m using gravity as well as a constant force in the direction of the forward vector.
What i’m struggling with is that I want when the snowboarder is facing up that the force smoothly transitions to start “pushing” in the other direction. With what I have right now as soon as my forward vector z is positive my character starts moving in the other direction. This is almost what i wanted but I want it to keep some momentum before going in the other direction.
Hey @ArthurJ! Welcome to the forums!
Instead of instantly setting the direction, you can lerp or interpolate between the two numbers instead, so there is a gradual change between the two until the lerp/interpolate is complete. Check out these great non-Epic affiliated videos, as one of these methods is likely to be what you are looking for!
I hope the above contains the solution you need!
1 Like
Hey @ArthurJ!
Checking in, was this the solution you were looking for?