Skip to content
UdemyMathPaid courseIntermediate level

A Crash Course in Quaternions (Unity 6 Compatible) (Udemy.com)

Learn how you can understand and implement quaternion rotations in your game projects

Created by: Penny de Byl

Last updated November 2024

icon
What you will learn

  • A background overview of the mathematics that underpins quaternion rotations.
  • How gimbal lock occurs and why it is an issue with Euler angle rotation calculations.
  • Why quaternions provide a superior way of calculating rotations over Euler's formula.
  • How to use quaternions to rotate 3d objects in the Unity Game Engine with C#.

How it compares

Against the other 127 rated Udemy courses in Math on CourseDuck:

  • Rating4.7 out of 5higher than 51% of them
  • Reviews220#66 of 128 by number of reviews
  • Length1.7 hoursshorter than 96% of them
  • Last updatedNovember 2024earlier than 52% of them

icon
Course Description

Quaternions are like vegetables. You know they are good for you but you aren't sure why and if only you knew how to make them taste good. Okay so you aren't going to be eating quaternions, but you get the idea.  They are this really advanced topic in geometry and mathematics that anyone who designs or programs games has heard about, might have even used, but have no real understanding about what they are achieving and why they are better than other methods.

This short course will demystify the concept for you.  No, it won't give you the level of understanding of a postgraduate university mathematics major but it will provide you with the theory that will help you put quaternions and rotations in 3D space in context and give you the skills to use them with confidence in your game projects to overcome the limitations of other rotational methods.

Learn how to program and work with:

  • 4x4 Matrices to represent Euler angles.

  • Quaternion operations included in the Unity API.

  • Rotational controls for Slerp, RotateTowards, and LookAt.

Contents and Overview

In this short course, you will gain an understanding of the history of rotational mathematics and how quaternions came into existence.  It begins by examining Euler angles and how they are used to orient objects in 3D while then proceeding to explain how Euler angle multiplication breaks down into the issue known as 'gimbal lock'.

Following this, a conceptual examination of basic rotational geometry is extrapolated from 2D space into the quaternion 4D.  It is then explained how 4 dimensions can be applied to 3D by implementing axis-angle rotations.

The second half of the course provides some hands-on tutorials for applying quaternions to move and rotate 3D objects in the Unity Game Engine using C#.

What students are saying about Penny's courses:

  • Turns out, the hardest part of this course for me is finding the words to describe how glad I am to have enrolled in it.

  • I honestly love Hollistic's teaching approach and I've never learned so much within a few hours about coding effectively with such detailed explanations!

  • Penny is an excellent instructor and she does a great job of breaking down complex concepts into smaller, easy-to-understand topics.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

Penny de Byl

Hi, I'm Dr Penny de Byl.  I'm a full stack developer of most things computer sciency and academic with a true passion for teaching.  I've been teaching others about games development, programming, computer graphics, animation and web design for over 25 years in universities in Australia and Europe at the full professor level. I've also consulted for Unity, SAE, the Australian Institute of Entertainment and Wikitude. My best selling textbooks including Holistic Game Development with Unity are used in over 100 institutions world-wide.  My graduates work at companies like Apple, Ubisoft, LinkedIn and Deloitte Digital.

I have an honours degree in computer graphics and a Ph.D. in artificial intelligence for games characters.  Over the course of my career I've won numerous awards for teaching excellence at the state, national and international levels including the Australian Learning and Teaching Council's Excellence in Teaching Award and the Unity Mobile Game Curriculum Competition. My approach to teaching computer science and related fields is project-based giving you hands-on workshops you can immediately get your teeth into.

I want you to leave my virtual classroom fully armed with a toolkit of skills for life-long learning.  I'm excited to now be focussing my efforts full-time on Udemy to bring my years of knowledge and experience to those eager to learn about technology.


icon
More courses by Penny de Byl

$10.99

$14.99

$11.99

$13.99

$11.99

$10.99

icon
More Math courses

$74.99

$22.99

$84.99

$10.99

$11.99

$74.99

icon
Reviews

4.7

220 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Brayden Blaffert on 5/12/2024

Excellent. Good explanations and examples. Simple but very practical practice projects to reinforce how to actually use quaternions. This is the 3rd source I've looked at for trying to understand this, and is the best one in terms of just being able to use the things properly in your project with just enough underlying understanding so that you're not just copy and pasting code with no idea what it's doing. Well worth the time.

By Azadi Bogolubov on 11/27/2023

This was a great course covering the rudimentary basics of the topic. Being a free course, this is over and above what I would have expected, and the fact that it is illustrated in code with visual outcomes only helped escalate things to a higher level. The topic of quaternions is no small matter, and the fact that it is broken down to simple components here shows the great teaching ability of the instructor.

By Vitalina Serykh on 9/24/2023

This is a great course, with plenty of coding applications. As a result of taking this course, I have gained a great deal of knowledge. A funny thing happened, I signed up for the course in order to understand the mathematical side of the quaternions, and I ended up applying for rotation. However, I thoroughly enjoyed the course and learned a great deal. I would like to express my gratitude to Penny, who is an excellent instructor.

By Massimiliano Marcianesi on 9/13/2023

The course offers a quick overview of all the topics covered in the main course, to which this is linked, except for the SLERP. It makes me want to buy it, but I had already done so...

By Anton Semchenko on 6/14/2023

I was expecting to understand how the quternions work under the hood. But this course only talks about how to use Unity's helper methods, which use quaternions under the hood. Nevertheless, it is a nice introduction to rotations for beginners. And I did better understand a couple of used methods myself. Also, you can't argue with free :D

By Guido Gloor on 4/16/2023

Great course. I did hope for a bit more of a deep dive into the mathematics of quaternions, I did get a thorough repetition of Euler angles (but that's not what the course name suggests). The course _did_ have great pointers to external resources (that did have those mathematics I craved). The course goes deep into how to apply quaternions in Unity, which of course is the more important skill to develop. Finally, the final exercise had the kind of space physics that I find strange (where you only move while accelerating and have no inertia) - luckily, that bugged me enough that I had to fix that and thus got lots of time to practice

By Dwayne Martin on 2/22/2022

The instructor gave clear and concise instruction about this complex topic. She provided concrete examples of the functions and made it very accessible to everyone.

By William Welch on 2/13/2022

Great tutorial--I learned alot. One part of the series involved making rotations with matrices to rotate a little airplane on a stick (vector). This was a little frustrating because I tried to play around with the scene before watching the whole video. It didn't take long for me to run headfirst into what would later be called the "Gimbal Lock" problem, though unbeknownst to me at the time, I thought I had done something wrong since the rotations were producing erratic results. Without continuing to watch the video, I spent WAY too much time trying to troubleshoot and rewrite the code trying to hack it to work correctly. Finally gave up and watched the rest of the video only to find out this "unexpected" behavior was, in fact, "expected" in that it was demonstrating the gimbal lock problem (FACEPALM!!!). Anyways other than that, the rest of the material was good--I just need to watch the whole video before starting it over, and actually following along. I will take personal responsibility for my lack of patience and over-enthusiasm with that particular video, but other than that, everything else was great. Thank you for the info!

By Pierce F. Krouse on 2/3/2022

Another really good course from Penny! She not only gives good info on how and why unity uses quaternions for rotations, but she also gives a really good layman's overview of how they actually work.

By Vincent Zalzal on 12/23/2021

The course is well paced and the instructor is clear. However, I feel the course did not reflect the title. Maybe "A Crash Course on Using Quaternions in Unity" would be more appropriate. Also, it would be nice to have a section about debugging. When some object has a weird orientation and you fire a debugger, how to interpret the quaternion values you read?

Showing all 10 reviews on CourseDuck

Read all 220 reviews on Udemy

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 94 / 100