x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

add impulse relative to the objects rotation

My Head is Hurting! I know the answer is so, so simple but i just cant remember.

SHORT STORY.

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!

Please help.

alt text

Product Version: UE 4.21
Tags:
more ▼

asked Jan 09 '19 at 08:56 PM in Blueprint Scripting

avatar image

thaone1
3 1 1

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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/

more ▼

answered Jan 09 '19 at 09:18 PM

avatar image

DmitriAzimov
101 3 3 6

avatar image thaone1 Jan 09 '19 at 09:30 PM

Thankyou so much! <3

works perfectly now! My brain just froze lol

(comments are locked)
10|2000 characters needed characters left

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!

more ▼

answered Jan 09 '19 at 09:28 PM

avatar image

the_batch
1.1k 4 5 8

avatar image the_batch Jan 09 '19 at 09:30 PM

Looks like I was slightly too slow! @DmitriAzimov got it.

avatar image thaone1 Jan 09 '19 at 09:32 PM

Thankyou @the_batch <3 we got there , ive been bashing my head off the deck for a while lol

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question