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"

Moving and rotating character where camera is looking

http://youtu.be/FB1CJ0-5Uyc

What i want to do is rotating and moving character where camera is looking. In video you can see it rotates left and right with no problem but when it comes to up and down, even though characters moves where camera looking, only camera rotates.

What i tried:

  1. Checking "Use Controller Rotation Pitch": When I do this, character rotates but camera does not follow it. Camera looks down too (you can see in the video).

  2. https://wiki.unrealengine.com/Blueprint_Six-DOF_Flying_Pawn_Tutorial -- Steering pitch like in this link. Didn't help either. The result was: a. Camera and characters goes opposite rotations b. character does not swim up and down

  3. Checking "Orient Rotation to Movement": It is not what i wanted. It rotates up and down only in movement.

Product Version: Not Selected
Tags:
more ▼

asked Feb 16 '15 at 02:12 AM in Blueprint Scripting

avatar image

Teodrus
11 3 6 7

avatar image mirsabayu Feb 16 '15 at 07:00 AM

i think it's because you use camera boom, are you already trying to directly connect the camera to root component??

avatar image Teodrus Feb 16 '15 at 06:14 PM

tried that too. that does not work either.

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

2 answers: sort voted first

Try making the camera the parent to the fish like this maybe:

alt text

Wherever the camera looks, the fish will look.

more ▼

answered Feb 16 '15 at 09:22 PM

avatar image

Maverinox
214 12 11 25

avatar image Teodrus Feb 16 '15 at 09:45 PM

tried this too. it makes fish move around camera. not suitable for 3rd person.

avatar image Maverinox Feb 16 '15 at 10:27 PM

Ohhhh, I see. Woops, my bad. Try this: alt text

This arrangement, with this code in the blueprint:

![![![![![![![![![![![![![![![![alt text][2]][2]][2]][2]][2]][2]][2]][2]][2]][2]][2]][2]][2]][2]][2]][2]

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

With Lojo's advice from here : http://tinyurl.com/qdxmpez i made this blueprint Blueprint

This works with a minor problem. If i make camera too much up or down, it goes crazy.

blueprint.jpg (94.2 kB)
more ▼

answered Feb 17 '15 at 02:09 AM

avatar image

Teodrus
11 3 6 7

avatar image Maverinox Feb 17 '15 at 02:43 AM

As long as it works, right? Haha.

Assuming I understood what you wanted, what I showed you should work just fine, with no problems. It rotates when you move the mouse around accordingly, and it doesn't move around the camera. There is also no issue with moving the camera too far up or down--it's error-free.

If what you currently have works too, however, then I'd say it's a mission success for the most part. It looks like you have the angle clamped so the problem you are getting is patched up I'm assuming.

avatar image Teodrus Feb 17 '15 at 04:59 PM

"Add controller pitch input" doesn't rotate character like the "add controller yaw input". I don't know why but it doesn't. I clamped angles because didn't wanted to fish rotate all the way up. Still getting camera problems. But like you said, as long as it works.

(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