C++ Equivalent to "Set Velocity" node in Floating Pawn Movement [SOLVED]
So, I cannot find the function/variable that works like the "Set Velocity" node in Blueprint. This node was extremely useful to completely change my floating pawns velocity on the fly without using any movement inputs. Is there an equivalent function that I am completely missing? I've scrawled through the source code going all the way from the floating pawn source code to Aactor, and I can't find anything like that dang node. It seems so simple, but I just can't find what I need to do.
This node: https://blueprintue.com/blueprint/k4smj_dh/
How about a different answer?
I just now got a chance to see your blueprint graph preview, and was reminded that (duh) you're dealing with a UFloatingPawnMovement component.
In that case, how about just setting the velocity directly on the movement component? Like so:
Hopefully this does the trick!
answered Jan 17 '19 at 01:46 AM
You have a couple of options, but perhaps the best is UPrimitiveComponent::SetAllPhysicsLinearVelocity. With that, you should just need your actor's root component, which is the component you'll call this function on. For example:
If you want to see all of your options for manipulating physics velocities for an actor in C++, check out the API page for UPrimitiveComponent.
answered Jan 16 '19 at 07:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here