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"

How To Rotate Actor and its components (Paper2D)

The issue

I have an ArrowBP and a ArrowSpawnerBP, when I add the ArrowSpawnerBP to the level and rotate it along the Z-Axis, the ArrowBP Sprite is always facing the wrong way.

Arrow Spawner

What I am Doing

I originally tried to spwan the ArrowBP and provide its WorldTransform but it does not work. I had to specifically AddWorldRotation to the ArrowBP Sprite component.

Transform Add

Questions

  1. Why do I have to call out the Sprite component specifically? Why can't I rotate the ArrowBP(Actor) and be done with it?

  2. Is this because of the Root Components I have for my BPs? Is there a specific Root Component I should always be using?

Product Version: UE 4.18
Tags:
arrow.png (12.1 kB)
transform.png (91.4 kB)
addrotation.png (152.3 kB)
more ▼

asked Jul 03 '18 at 04:09 AM in Blueprint Scripting

avatar image

xXZUKINIXx
116 4 5 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Answer

When I had to rebuild all the components in the BP. This means I had to delete them all and start with the order of inheritance I wanted to them to have. I think switching the Root Component and the others around messed something up and wouldn't properly orientate.

Now I can just use the WorldTransform of the SpawnPoint and everything works regardless of the direction I rotate my ArrowSpawnerBP.

If someone could provide some insight into what may have happened to avoid this in the future, it would be greatly appreciated!

more ▼

answered Jul 04 '18 at 02:02 AM

avatar image

xXZUKINIXx
116 4 5 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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