Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
A Crash Course in Quaternions (Unity 6 Compatible)
Rating: 4.6 out of 5(217 ratings)
7,546 students

A Crash Course in Quaternions (Unity 6 Compatible)

Learn how you can understand and implement quaternion rotations in your game projects
Last updated 11/2024
English

What you'll 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#.

Course content

4 sections17 lectures1h 41m total length
  • Introduction1:55

    In this lecture Penny will provide a short introduction to the course.

  • Join the H3D Student Community1:26

    H3D has a bustling online student community.  Here's how to get involved.

  • Contacting H3D0:01

    How to contact us

  • FAQs0:14

    Here's how to get the best experience from studying this course and answers to some popular student questions.

  • Updating to Unity 612:05

    While this course was developed in a previous version of Unity, we've tested the projects and they work with Unity 6. This video is a guide to help you adjust your learning in this course to use Unity 6.

Requirements

  • Be able to explain why quaternions are better than Euler angles for calculating rotations.
  • Be able to apply quaternion operations in Unity to orientate 3d objects.

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.

Who this course is for:

  • Any game developer that wants to understand quaternions better.