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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Is the controller rotation limited?

Hi, is the roll rotation limited to +90 / -90 from the controller? Because I cannot rotate further.

Also my pitch seems to be limited (also in editor) to -90 / +90.

Product Version: Not Selected
Tags:
more ▼

asked Sep 12 '14 at 09:59 AM in Everything Else

avatar image

birdfreeyahoo
870 46 44 80

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

2 answers: sort voted first

One place where you can get hung up is hitting axial limits on the 'thing' your controller is controlling, so start with your pawn and work backwards. Check his root component in the Components tab and find the Physics section. There's a dropdown for "Locked Axis" you will probably want to change to None given standard FPS games like those axes locked on purpose. Another place to get hung up is on the camera itself. Click on the camera component and find Camera Settings - there's a bool in there to "Use Controller View Rotation" to turn off in the case where you'd rather keep the same view as the pawn or not. Being careful, you can achieve six degrees of freedom if you don't try to over-complicate things. You can use the Get Up Vector to find a local Z axis, use Forward and Right vectors to build out a local coordinate system, find your orientation from any two of these directions (ex: Make Rot from ZY) or put all four together to build a full-on transform. You could free yourself from having to deal with the controller rotation altogether and just fly the pawn around, or pass values back and forth for replication and networked games... I found starting from scratch easier than the Flying template honestly - but it is doable with some head pounding on keyboards.

more ▼

answered Sep 13 '14 at 08:12 AM

avatar image

1l2Hawk
690 36 35 74

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

If you possess a pawn and try to rotate it in any direction, you'll be limited to 90% in any direction. It's a bug acknowledged by Unreal developers.

https://answers.unrealengine.com/questions/81372/bug-actor-relative-pitch-rotation-stuck-in-90-degr.html

However, if you do the rotation in your custom PlayerController blueprint, you can freely rotate 360 degrees without limit. The rotation values (roll, yaw, pitch) can even exceed 360 degrees and it'll work perfectly.

more ▼

answered May 25 '15 at 01:15 PM

avatar image

Pelangi
246 22 34 41

(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