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"

[SOLVED] Gun does not follow viewport

Hello everyone!

My problem is that I wish to have my tool (gravity gun) follow the view port.

Screenshot of character root:

alt text

I am trying to have "gun" follow the view port, but I have no idea where to start. When I rotate side to side, the gun follows, but up and down it does not... Assistance?

Product Version: UE 4.13
Tags:
1.png (7.1 kB)
more ▼

asked Mar 03 '17 at 01:13 AM in Blueprint Scripting

avatar image

MerkyTV
1 2 3

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

2 answers: sort voted first

Ok, this has been solved! I just needed to enable Use Controller Rotation Pitch and then parent the Gun to the Camera Component.

more ▼

answered Mar 09 '17 at 01:51 AM

avatar image

MerkyTV
1 2 3

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

Side-to-side rotation is handled by the Capsule Component but vertical rotation is managed by the Camera Component. Try to add a Camera Component to your Character and attach the gun to the Camera.

more ▼

answered Mar 03 '17 at 03:31 PM

avatar image

Koralgoll
400 16 24 44

(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