yaw induces roll

Chris shared this feedback 2 months ago
Not Enough Votes

This is obviously more noticeable planet side...

I note that when yawing a ship it induces a roll, this is a consequence of matrix operations being non commutative

Depending on handedness of axes etc the usual order of rotations would be Yaw Pitch Roll, almost certainly not xyz or zyx.

happily other than fixing this issue correcting the order of rotational operations should have no other impact other that fixing the issue.

Replies (9)

photo
1

Hello, Engineer!


We're sorry to hear you're experiencing issues.

Could you please let us know the specific steps you're performing to observe this issue, as well as what ship you're using? Could you provide us a blueprint and a video of the issue?


Kind Regards

Keen Software House

photo
1

take any ship, with decent yaw and pitch ability

an additional test that can highlight this issue...

move the mouse around in a decent sized circle (ensure you keep the mouse pointed in the same direction don't twist your wrist) you should notice an unrequested roll induced easily noticeable after one or two circles... this is another symptom of the above issue.

photo
1

That sounds like how real world physics works. In any game where you can rotate objects freely that happens. Like in Skyrim inventory where you can rotate the 3D inventory item.

You are so used to gravity, that you consider its axis special and feel like you should stay aligned to it.

You should instead imagine yourself in a sphere with a laser pointing where you are looking. If you pitch up and then try yawing left, you are not moving your view parallel to your original horizon but to the new one you have acquired after pitching up.

Ship or jetpack is not a turret or standing player and is not bound to any primary axis.

Here is another feedback dealing with it https://support.keenswh.com/spaceengineers/pc/topic/which-way-is-down-ui-and-ux-polish-needed

photo
photo
1

This has nothing to do with "down" and can be replicated in space


Please carefully review my suggestions for replicating the issue preferably by someone who understands the effects of the order of the multiplication of rotation matrices

photo
1

may also be gyro alignment, they do have a front/back, and if using code or override you will mixed results

photo
1

I have seen and fixed *exactly* the same issue in my own code

please see https://www.youtube.com/watch?v=aEsMIPPp6LI

photo
1

that video is private so only you can play it

photo
1

yeah dunno how that happened.... try it now....

photo
photo
1

here is an example of a camera that can be in any orientation where pitch and yaw does not incorrectly induce a roll

https://www.youtube.com/watch?v=W26LzOsANYc

photo
1

Hello, Engineer!


We've been unable to reproduce the issue you're describing either by keyboard(arrow) controls of yaw or via a gamepad. Could you please provide a video from an unmodded world using those controls and a blueprint you've been using?


Kind Regards

Keen Software House

photo
1

please see https://youtu.be/nmexe37jPJ8


no blue print, no mods, using suit only

if 3d rotations are correctly applied, using just yaw and pitch should NOT induce roll

as you can see by tracing around this square shape using pitch then yaw then pitch then yaw or either way round is actually incorrectly inducing roll

it is possible to correctly avoid this unrequested roll when using yaw and pitch - I know because I've implemented it myself in my own projects.

I am prepared to work in confidence with your programmers to resolve this issue, but it is dependent on the specifics of how you have implemented the matrix multiplications, there are a number of gotchas and I'd need to be in touch with someone who understands the specific technical implications of the maths

photo
1

Hello, Engineer!


Thank you for the provided video, it's very comprehensive. We've discussed the issue you've described internally and it's been decided it's currently behaving as intended. Isolated pitch, roll and yaw controls are available via a keyboard or gamepad instead.

We will move your ticket to Feedback instead and if it gathers enough votes, it'll be passed to the design to be considered for implementation in future updates.


Kind Regards

Keen Software House

Leave a Comment
 
Attach a file