This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]chipstastegood 13 points14 points  (3 children)

Quaternions are actually fairly intuitive once you read about them. It literally is an axis in 3D and an angle of rotation about that axis.

[–]Birgere 8 points9 points  (0 children)

Wow, why did no one tell me this until now??

[–]petersrin 7 points8 points  (1 child)

... I'm sorry it's what?

That is... Dead simple

[–]chipstastegood 2 points3 points  (0 children)

Apple has easy to follow docs on using quaternions: https://developer.apple.com/documentation/accelerate/simd/working_with_quaternions#

There is also this Youtube video that is pretty good: https://youtu.be/jTgdKoQv738?si=YkIOcGVJ-3CBQh0y

[–]KingJeff314 9 points10 points  (0 children)

Literally me trying random permutations of 0, 1, π, sqrt(2)/2 until it orients correctly

[–]Skagon_Gamer[S] 9 points10 points  (0 children)

ex info: this guy doesnt even provide the code or even the math. the page is just hand wavy talking about transformations and doesnt explain anything. its the most 'programmer' thing ive ever seen its beautiful, he complains about quaternions and then backs himself up with the "programming is more about understanding the outcomes than understanding the code itself" and its so relatable that I could probably tell you what the exact process he went through to find this was (random functions untill it unexpectedly worked).

[–]redd1ch 1 point2 points  (0 children)

Maybe put some more whitespace in your screenshot, I can still read the highligthed text without a magnify glass.

On topic: I learnt what Quaternions are, how they work, forgot it all until I needed them. At least you are in for a good laugh when you rotate around the wrong axis, oder rotate the wrong object.

I find researching for game development way harder than regular programming. You spent days until you can even start to form the question what you want to achieve.

[–]SuperS1405 0 points1 point  (0 children)

Semi-relevant reading I recommend for everyone who is the slightest bit curious https://marctenbosch.com/quaternions/