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"

Spawning Projectile from Bone towards center of screen

I have my projectile spawning from my RightHand bone segment and having it shoot somewhat towards the center of the screen towards my crosshair. But it's shooting off to the right, I believe it's because it's not factoring in the rotation of the Bone but I'm not 100% on what the issue might be. I was going off this post's mechanic for the projectile going towards the screen but can't get it working quite right:
https://answers.unrealengine.com/questions/85030/shooting-straight.html

alt text

alt text

alt text

Product Version: UE 4.20
Tags:
targeting-1.png (264.6 kB)
targeting-2.png (251.3 kB)
targeting-3.png (1.9 MB)
more ▼

asked Nov 20 '18 at 01:33 AM in Blueprint Scripting

avatar image

MrBubblesLIVE
3 1 3

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

2 answers: sort voted first

Try replacing the "Make Rot from X" node with either Find Look at Rotation (https://api.unrealengine.com/INT/BlueprintAPI/Math/Rotator/FindLookatRotation/index.html) or Get Azimuth and Elevation (https://api.unrealengine.com/INT/BlueprintAPI/Math/Vector/GetAzimuthandElevation/index.html).

Neither does quite the job of the C++ command "ToOrientationRotator", but it will do the job in this case.

more ▼

answered Nov 29 '18 at 11:22 AM

avatar image

Dragon Slave
43 4 7

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

I got it working by using the Find Look at Rotation:

alt text

targeting-works.png (221.7 kB)
more ▼

answered Nov 29 '18 at 11:34 PM

avatar image

MrBubblesLIVE
3 1 3

(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