Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
109 lines (94 sloc) 4.77 KB

Game Engines 1

Resources

Assignments & student work from previous years

Week 11

Week 10

Week 9

Week 8

Week 7

Week 6

  • Rotating a vector by a quaternion in C++ lecture

  • Lab 5

  • Lecture notes on Quaternions

    Ode to the Quaternion

    A quaternion is like a vector, but with a "w"
    To construct one, use an axis and an angle, that's what we do
    For rotations it must be normal, or otherwise its pure
    So we normalise, divide by length, just to be sure
    To invert a normal quaternion, we negate x, y and z
    Multiply quaternion, vector, inverse quaternion and it rotates don't you see
    A rotation of 0 radians is the same as two pi
    To convert a quaternion to a matrix, we use the API
    So here's a health to old Hamilton, your inventor it would appear
    And to imaginary numbers floating in the hypersphere
    - Dr Bryan Duggan

Week 5

Week 4

Week 3

Week 2

Week 1

You can’t perform that action at this time.