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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Have child ignore parent yaw

alt text

Here is the hierarchy I have for a tank I made.

TankBody is set to Simulate Physics and is controlled by applying forces. What I want is for the TankTurret to ignore TankBody Yaw rotation but inherit both Pitch and Roll.

I've tried the SpringArm approach but it doesn't work since TankBody is simulating physics and attaching a SpringArm between TankBody and TankTurret doesn't allow TankTurret and TankBarrel to inherit the simulate physics property of the parent (If I tick simulate physics for them separately, they lose all parent connections).

SetAbsoluteRotation also doesn't work since I still want to inherit Pitch and Roll.

How can I go about ignoring the yaw of the parent only?

Product Version: UE 4.18
Tags:
hierarchy.png (9.7 kB)
more ▼

asked Jul 10 '18 at 09:44 AM in Blueprint Scripting

avatar image

m.duman
38 3 7 12

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

2 answers: sort voted first

You could set the tankturret world rotation to a constant with an event tick that allows you to lock the yaw rotation for each frame.

more ▼

answered Jul 10 '18 at 10:37 AM

avatar image

meteora-1999
16 2 6

avatar image m.duman Jul 10 '18 at 10:48 AM

Well, maybe I should have added, but TankTurret will be moving separately, aiming at the crosshair.

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

I actually have been dealing with this exact issue. In the transformation properties, you'll find a setting that allows you to make individual rotational and location vectors absolute. If you tick for the z-axis rotation, you should get what you want. alt text

more ▼

answered Jul 10 '18 at 12:52 PM

avatar image

Fyrestorrm
1 2 2

avatar image m.duman Jul 10 '18 at 03:13 PM

If you tick for the z-axis rotation, you should get what you want.

Could you please explain what you meant here. I know how to make the Rotation absolute but not just the Yaw Rotation.

(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