Download

Setting Velocity of a Single Axis

Hi all,
I’m building a runner game where the player is a cube and is pushed through the level by an impulse. When the pawn’s forward velocity reaches a certain point I want to cap off the value. However, when I use the set linear velocity node it sets the velocity for all three axes and makes it so I can’t move the player left or right. I want to only affect the x-axis and not worry about the other two axes. Does unreal not have a node to only affect one axis?

Does plugging the get velocity Y and Z axis into the set all physics linear velocity node work?

Ha, I’m an idiot. That worked perfectly. I’m still new to this so thank you very much.