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"

inherited rotation of sub actors

Hi there,

I got a small problem with the rotation of my weapons. As you can see at the blueprint I try to align my weapons through my mouse position. My wepaons are splited in 2 parts, weapon base (BP_Weapon1) and the weapon itself(BP_Gathling)

The weapon base has this blueprint you see, the base is mounted on each side of the mech. The body of the mech is able to rotate 45° to each side. The weaponbase should just follow the mech body, the only addition is that the weapon base should aim to the mouse cursor pitch.

My problem is now that the weapon base don´t follow the mech body when I don´t connect point 2 with point 3. If I connect point 2 and 3 the base follows the cursor but more than 45°.

Now I thought I use the plattformBase (top hirachy of the weapon base) to get its YAW but if I connect point 1 with point 3 the weapon base stands still. If I deactivate the BP the weapon base follows the body but I can´t aim to cursor pitch.

I tried many possibilities but none worked fine. I can´t use the player controller cause this mech can also be an enemy. I tried world rotation instead of socket rotation but this failed either.

My last try was to get the base rotation by using getattached parent function, it worked but the aiming has a delay.

I don´t know how I could fix this rotate problem, I really hope someone out there could help me out.

best wishes Harlyk

alt text

Product Version: UE 4.9
Tags:
plattform.jpg (406.5 kB)
more ▼

asked Jan 22 '16 at 07:37 AM in Blueprint Scripting

avatar image

Harlyk
10 8 8 9

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

1 answer: sort voted first

Found the problem. The interp speed was just to low and caused the delay. Didn´t know why the rotation wasn´t inherited but well .. at this point it works, perhaps I will find the other answer later on.

more ▼

answered Jan 23 '16 at 05:49 PM

avatar image

Harlyk
10 8 8 9

(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