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"

Can't rotate component while rotating pawn's root.

Hello.

I have a pawn, which is a tank. And it has a base, which is the pawn's root component, and the cannon, that is attached to the tank's base.

The Base rotates towards the gamepad's left stick angle, and the cannon rotates towards the gamepad's right stick angle. I can move both elements on their own just fine.

However, while the base is being rotated, the cannon seems to not being able to rotate on it's own. I have both these behaviors trigger from a "Event Tick" node, and through a Sequencer. So base rotation is "then 0", and cannon rotation is "then 1". (base is body, cannon is head) alt text The cannon rotates to the base yaw when there is no input. And it doesn't rotate back when it's not rotating while rotating the base Dx alt text

I have a "Then 2" that handles the forward speed of the tank's base using the vector length of the left stick, and it has no problem triggering simultaneously while the base rotates.

I'm assuming there is something wrong with my arrangement. Maybe my blueprint setup doesn't work how I thought it did, or maybe is something with how pawns work. Frankly I'm stuck and I have no idea why this is happening =(

Product Version: UE 4.9
Tags:
base rotation.png (234.1 kB)
cannon rotation.png (363.3 kB)
more ▼

asked Oct 11 '15 at 05:24 AM in Blueprint Scripting

avatar image

Sargas Evigmae
74 11 16 20

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

1 answer: sort voted first

Ok, the problem was super simple. I was using set rotation on Actor, thinking it would just rotate the base, since it was used as the root in this actor. However, i needed to use the Set Rotation on the Scene Component node on the body component. I did not understood i could do this before.

My problem was in fact cause because i was rotating the whole actor, which interfered with the cannon rotation.

Now it's solved =)

more ▼

answered Oct 16 '15 at 09:54 PM

avatar image

Sargas Evigmae
74 11 16 20

(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