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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

How do I rotate my FPS character?

Hello,

I'm trying to have the player rotate during an event. I had no trouble at all to move the player around, but I can't seems to rotate him at all. I tried different ways to do it, here is my latest attempt. If anyone can help me, I would really appreciate it.

Thank you very muchalt text

Product Version: Not Selected
Tags:
camerarotation.png (326.0 kB)
more ▼

asked Jul 14 '14 at 07:46 PM in Blueprint Scripting

avatar image

Mikhael
8 3 5 8

avatar image Ben Halliday STAFF Jul 15 '14 at 07:35 PM

Hey Mikhael,

Is your character's camera attached to a Spring Arm component? If so, you'll want to use that instead of the First Person Camera for initial rotation and Set Relative Rotation target.

avatar image Mikhael Jul 15 '14 at 08:36 PM

No it isn't as far as I can see. I'm using the First Person Player character that comes with unreal (the blueprint version).

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hey Mikhael,

If you're using the FPS template, the camera is set to Use Controller View Rotation by default. You can do one of two things to make your Blueprint work:

  1. Disable the Use Controller View Rotation in your character's Camera component.

  2. Use the Set Control Rotation node instead of the Set Relative Rotation node.

Note that in either case, you may not see much of a difference with the value you are currently passing into the Target rotation for the RInterp To node. Just to test that it's working the way you intend, try passing it a simple Rotation; Get Actor Rotation > Break Rot > Yaw +90 > Make Rot, and pass that into the RInterp To node.

alt text

Hope that helps!

Ben Halliday

more ▼

answered Jul 15 '14 at 09:28 PM

avatar image Mikhael Jul 15 '14 at 09:30 PM

Thank you very much, I'l try that as soon as possible !

avatar image aclem011 Dec 13 '18 at 10:11 AM

Was having the same issue, great solution!

(comments are locked)
10|2000 characters needed characters left
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