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. 

Calculating Pitch and Yaw offsets based upon roll

I'm working on a 6DOF player character and it's going fairly well, save for the rotation.Using angular impulse is very smooth, but it ends up with lovely desync. So I've gone back to the player controller rotation as player location accuracy is important.

I've dealt with gimbal lock already using a Player Camera Manager Camera manager settings

However well using Add Controller Pitch/Yaw/Roll may work for network replication, I have that lovely problem in which pitch and yaw work perfectly fine, unless you're rolled 90 or 270 and then pitch becomes yaw and yaw becomes pitch. The player controller always rotates the pitch straight up and down no matter how the character is rotated and likewise with the yaw.

So to make a long story even longer; is there a blueprint or code based way that I can either calculate the proper amount of pitch or yaw to apply based on rotation, or is there a way to force the controller's orientation to be relative to the character?

Product Version: UE 4.20
more ▼

asked Aug 04 '18 at 03:14 AM in Blueprint Scripting

avatar image

16 3 5

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

1 answer: sort voted first

Turns out it wasn't necessary. I got halfway through the math (it was starting to work) and discovered https://answers.unrealengine.com/questions/358283/quaternion-solution-to-mouse-look-pitch-and-yaw.html in this post that all I needed to do was set the controller rotation manually after updating the actor rotation.

alt text

So now I have accurate transform replication and 6DOF control.

more ▼

answered Aug 05 '18 at 08:36 PM

avatar image

16 3 5

(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