add impulse relative to the objects rotation
My Head is Hurting! I know the answer is so, so simple but i just cant remember.
Ive made an actor blueprint, This is a boost (Forward) Pad on the floor
it works great! However because i've added a force of -5000 on the X value when i place the item in my world and decide to rotate this the boost direction does not update. it sends me along the world X axis! and not the objects X axis.
Ive been playing with this for hours now and its driving me crazy!
asked Jan 09 '19 at 08:56 PM in Blueprint Scripting
You can get the booster's forward vector and multiply it by whatever force amplitude (a float) you want to give it and feed that to the add impulse. http://api.unrealengine.com/INT/BlueprintAPI/Utilities/Transformation/GetActorForwardVector/
How about the Get Actor Forward Vector node?
It will provide you a world-space vector that corresponds to an actor's local forward direction. In your case, it should provide you the forward vector for your boost pad, no matter which way you rotate the pad.
Give that a try and let me know how it goes!
answered Jan 09 '19 at 09:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here