Math for game devs
Vectors, matrices, quaternions, curves, easing and interpolation sit under almost everything in games. These guides explain the maths in an intuitive way, with visual examples and Unity code. Worth a read even if you have been shipping for years. 197 hand-picked Unity guides, tutorials, videos and repos, kept current.
- @freya.bsky.social: quaternion powers q², √q and qˣ scale a rotation
Raising a quaternion to a power scales its rotation: square doubles, square root halves, qˣ scales by x.
bsky.app · Sep 2026 - @freya.bsky.social: quaternion (x,y,z,0) is a 180° rotation about that axis
A unit vector as a pure quaternion gives a half-turn around it, with no trig or euler conversion.
bsky.app · Sep 2026 - Maths Archives - Alan Zucconi
Archive of Alan Zucconi's math tutorials for games.
alanzucconi.com · Aug 2026 - Xorshift Generators
Deep dive into xorshift pseudo-random number generators.
alanzucconi.com · Aug 2026 - Xorshift Generators: Appendix
Appendix listing maximal triplets and technical details for xorshift generators.
alanzucconi.com · Aug 2026 - I Tried Coding my own Graphics Libraryyoutube.com · Jul 2026
- @freya.bsky.social: random rotations equal uniform points on a 4D sphere
Uniformly distributed random rotation quaternions are exactly uniform random points on the 4D sphere surface.
bsky.app · Jul 2026 - @freya.bsky.social: analytic 2D lighting with complex numbers and conformal maps
Shader lighting via piecewise conformal maps of angular exposure yields fully analytic penumbras.
bsky.app · Mar 2026 - Coding Adventure: Additive Synthesisyoutube.com · Mar 2026
- The nature of the pixel
Aliasing, sampling and why many rendering problems come from the screen being made of discrete pixels.
proceduralpixels.com · Mar 2026 - Verlet solver: the simplest physics engine
Build your first custom physics engine in an evening with Verlet integration.
proceduralpixels.com · Mar 2026 - @freya.bsky.social: A+B is the midpoint of A and B in homogeneous coordinates
In homogeneous coordinates adding two points gives their midpoint, a trick behind w=0 or w=1 handling.
bsky.app · Mar 2026 - Skeletal Animation & Skinning: how it works
Explains bone hierarchies, inverse bind matrices, and linear blend skinning that deform meshes into animated characters.
moonjump.com · Mar 2026 - Third-Person Camera Systems: how it works
Shows follow cameras, exponential damping, and raycast-based collision avoidance for third-person cameras.
moonjump.com · Mar 2026 - Procedural Locomotion: how it works
Covers step triggering, gait coordination, and two-joint inverse kinematics for generating walk animations at runtime.
moonjump.com · Feb 2026 - Octrees: how it works
Explains octree space partitioning and how it speeds up spatial queries such as collision detection and frustum culling.
moonjump.com · Feb 2026 - Poisson Disk Sampling: how it works
Teaches Bridson's O(n) algorithm for evenly spaced random points, useful for placing trees, rocks, and spawn points.
moonjump.com · Feb 2026 - Normal Mapping: how it works
Covers tangent space and the TBN matrix, with a shader implementation that adds surface detail to flat polygons.
moonjump.com · Feb 2026 - Parallax Scrolling: how it works
Explains how moving background layers at different speeds creates depth, with the math and implementation patterns.
moonjump.com · Jan 2026 - Metaballs & Implicit Surfaces: how it works
Explains scalar fields and falloff functions that merge organic blobby shapes, plus real-time GPU rendering approaches.
moonjump.com · Jan 2026 - Projectile Trajectories & Ballistics: how it works
Covers kinematic equations, inverse aiming solutions, and arc visualization for projectiles like grenades and artillery shells.
moonjump.com · Jan 2026 - Voronoi Diagrams: how it works
Explains Voronoi partitioning and its uses in map generation, fracture, Worley noise, and GPU signed distance fields.
moonjump.com · Jan 2026 - Verlet Integration: how it works
Breaks down the position Verlet formula and Jakobsen's constraint relaxation for simulating cloth, rope, and ragdolls.
moonjump.com · Jan 2026 - Ray Marching & Signed Distance Fields: how it works
Learn how signed distance fields and ray marching render complex 3D shapes from mathematical functions on the GPU.
moonjump.com · Dec 2025 - Separating Axis Theorem (SAT): how it works
Learn how SAT detects convex-shape collisions and how to compute the Minimum Translation Vector for physics resolution.
moonjump.com · Dec 2025 - @freya.bsky.social: many game quantities are better as rational numbers than flo
Time, UI sliders and line intersections can be exact fractions, avoiding float rounding issues.
bsky.app · Dec 2025 - Water Simulation: how it works
Learn how Gerstner waves, FFT-based ocean rendering, and shallow water equations combine to create real-time water.
moonjump.com · Dec 2025 - Marching Cubes: how it works
Learn how Marching Cubes converts a 3D scalar field into a smooth triangle mesh for metaballs and volumetric terrain.
moonjump.com · Dec 2025 - Frustum Culling: how it works
Learn the math of view frustums, plane extraction, bounding volume tests, and hierarchical culling.
moonjump.com · Nov 2025 - Rigid Body Physics: how it works
Learn how impulse-based collision response works, the math behind major physics engines, with an interactive simulation.
moonjump.com · Nov 2025 - Steering Behaviors: how it works
Learn Reynolds' Seek, Flee, Arrive, and Wander steering behaviors using vector math for natural autonomous movement.
moonjump.com · Nov 2025 - Rope & Cloth Physics: how it works
Learn how Verlet integration and distance constraints simulate ropes, capes, and flags in real time.
moonjump.com · Oct 2025 - Inverse Kinematics: how it works
Learn how the FABRIK algorithm solves chain-reaching for limb movement and how to implement it from scratch.
moonjump.com · Oct 2025 - Raycasting: how it works
Learn the DDA raycasting algorithm from first principles, plus its uses in picking and AI line-of-sight.
moonjump.com · Oct 2025 - Bézier Curves: how it works
Learn how Bézier curves work, from linear interpolation to De Casteljau's algorithm, and how they drive camera paths, projectile arcs and splines.
moonjump.com · Oct 2025 - Quadtrees: how it works
Learn how quadtrees recursively divide 2D space to speed up collision detection and scene queries, including the algorithm and math.
moonjump.com · Oct 2025 - Spring Physics: how it works
Learn Hooke's Law, numerical integration and spring chains for bouncy platforms, ropes, camera lag and ragdoll-style effects.
moonjump.com · Oct 2025 - Flocking with Boids: how it works
Learn how separation, alignment and cohesion rules combine to produce convincing flocking behavior.
moonjump.com · Oct 2025 - Orbital Mechanics
Teaches orbital mechanics basics, from gravity simulation to Keplerian two-body orbits.
alanzucconi.com · Sep 2025 - Oskar Stålberg: Landscapes of Hex and Square - Summer School on AI and Games 2023
How to build procedural content systems on hex and square grids, from Bad North to Townscaper.
youtube.com · Feb 2025 - Freya's Guide to XYZ Axes and Handedness
Post showing a guide to XYZ axes and handedness across coordinate systems.
mastodon.social · Sep 2024 - Coding Adventure: Sound (and the Fourier Transform)youtube.com · Aug 2024
- Clean way to get meters per pixel in shaders
Post showing a clean way to compute meters per pixel in shaders.
mastodon.social · Aug 2024 - Lerp smoothing is broken
Explains why the common lerp smoothing pattern is frame-rate dependent and how to fix it.
youtube.com · May 2024 - Framerate-independent lerp smoothing
Post working out framerate-independent lerp smoothing.
mastodon.social · Feb 2024 - Easing functions: linear, smoothstep, smootherstep and elevator-style curves
Post comparing easing functions like linear, smoothstep, smootherstep and elevator-style curves.
mastodon.social · Jan 2024 - 3D Math Primer for Graphics and Game Development
Landing page of a 3D math textbook for graphics and game development.
gamemath.com · Nov 2023 - Why can't you multiply vectors?
Explains why vectors have no single multiplication, covering dot, cross and other products.
youtube.com · Oct 2023 - The Best Darn Grid Shader (Yet)
How to draw a clean, anti-aliased grid in a shader that holds up at any distance and viewing angle.
bgolus.medium.com · Oct 2023 - Unity 4D #4: Creating 4D Objects
Explains how to create four-dimensional objects for the Unity4D extension.
alanzucconi.com · Jul 2023 - Unity 4D #3: Rendering 4D Objects
Renders 4D objects in Unity with orthographic, perspective and cross-section projections.
alanzucconi.com · Jul 2023 - Unity 4D #2: Extending Unity to 4D
Extends Unity to support four-dimensional geometry.
alanzucconi.com · Jul 2023 - Unity 4D #1: Understanding the Fourth Dimension
Introduces the fourth dimension and how to create, manipulate and visualize 4D objects.
alanzucconi.com · Jul 2023 - How To Build Roads Procedurally In Unity with the Splines Package
Builds procedural roads along splines with Unity's Splines package.
youtube.com · Jun 2023 - Basic Quad/Octree Culling 2
Patreon post on basic quadtree and octree culling, part 2.
patreon.com · Mar 2023 - Mathfs: Catenary2D (solving the catenary root)
Repo: Mathfs library class for solving a 2D catenary curve in Unity.
github.com · Dec 2022 - The Continuity of Splines
Explains continuity of splines and what C0, C1 and C2 mean.
youtube.com · Dec 2022 - Coordinate system chart (Unity, Unreal, 3D math)
Post sharing a coordinate system chart for Unity, Unreal and 3D math.
mastodon.social · Nov 2022 - Quaternion swizzling for cheap 180-degree rotations in Unity
Repo: code snippet using quaternion swizzling for cheap 180-degree rotations in Unity.
github.com · Nov 2022 - The Art of Real-Time Mathematics (guest lecture)
Guest lecture on real-time mathematics for game and graphics programming.
youtube.com · Nov 2022 - Triangle wave function/modulation (cheap sine alternative)
Explains a triangle wave function as a cheap sine alternative for lerping textures in FX.
artstation.com · Nov 2022 - Linear Smooth Step material and Niagara functions
Shares linear smooth step material and Niagara functions for interpolation.
artstation.com · Nov 2022 - Math for Game Devs [2022, part 10] • Abstract Algebra, Procedural Animation & Splines
Math for game devs part 10 covering abstract algebra, procedural animation and splines.
youtube.com · Nov 2022 - Math for Game Devs [2022, part 9] • Solutions to the final assignments
Math for game devs part 9 reviewing solutions to the final assignments.
youtube.com · Nov 2022 - Math for Game Devs [2022, part 8] • Trajectories & Derivatives
Math for game devs part 8 on trajectories and derivatives.
youtube.com · Nov 2022 - Math for Game Devs [2022, part 7] • Interpolation & Point Physics
Math for game devs part 7 on interpolation and point physics.
youtube.com · Nov 2022 - Math for Game Devs [2022, part 6] • Solutions for Assignments 7-11
Math for game devs part 6 reviewing solutions for assignments 7-11.
youtube.com · Nov 2022 - Math for Game Devs [2022, part 5] • Trigonometry & Rotations
Math for game devs part 5 on trigonometry and rotations.
youtube.com · Oct 2022 - Math for Game Devs [2022, part 4] • solutions for assignments 4-6
Math for game devs part 4 reviewing solutions for assignments 4-6.
youtube.com · Oct 2022 - Math for Game Devs [2022, part 3] • Matrix4x4 & Cross Product
Math for game devs part 3 on Matrix4x4 and the cross product.
youtube.com · Oct 2022 - Math for Game Devs [2022, part 2] solutions for assignments 1-3
Math for game devs part 2 reviewing solutions for assignments 1-3.
youtube.com · Oct 2022 - Math for Game Devs [2022, part 1] • Numbers, Vectors & Dot Product
Math for game devs part 1 on numbers, vectors and the dot product.
youtube.com · Oct 2022 - Voronoi Derivatives
Catlike Coding tutorial on computing derivatives of Voronoi noise for surfaces.
catlikecoding.com · Oct 2022 - Perlin Derivatives
Catlike Coding tutorial on computing derivatives of Perlin noise for surfaces.
catlikecoding.com · Sep 2022 - Pseudorandom Surfaces: Simplex Derivatives
Calculates analytic derivatives of simplex noise for pseudorandom surfaces.
catlikecoding.com · Aug 2022 - Icosphere
Generates an icosphere procedurally in Unity.
catlikecoding.com · Jun 2022 - Procedural Meshes: Geodesic Octasphere
Procedural meshes tutorial creating an octasphere from geodesic lines.
catlikecoding.com · May 2022 - Procedural Meshes: Octasphere
Procedural meshes tutorial creating an octasphere.
catlikecoding.com · Apr 2022 - Procedurally Generating A Hexagon Grid in Unity
Procedurally generates a hexagon grid in Unity.
youtube.com · Apr 2022 - Procedural Meshes: Seamless Cube Sphere
Procedural meshes tutorial creating a cube sphere without seams.
catlikecoding.com · Mar 2022 - How to rotate a vector
Explains how to rotate a vector in 2D and 3D.
youtube.com · Feb 2022 - Procedural Meshes: UV Sphere
Procedural meshes tutorial creating a UV sphere.
catlikecoding.com · Jan 2022 - SGC21- Oskar Stålberg - Beyond Townscapers
Experimental tile-based procedural generation beyond Townscaper: irregular grids, dual meshes and new tile setups.
youtube.com · Dec 2021 - Procedural Meshes: Square Grid
Procedural meshes tutorial creating a square grid mesh with a Burst job.
catlikecoding.com · Nov 2021 - Procedural Meshes: Creating a Mesh
Procedural meshes tutorial creating a mesh via code with the simple and advanced Mesh API.
catlikecoding.com · Oct 2021 - Smoothstep - Shader Graph Basics - Episode 15
The Smoothstep node: the math, then practical uses.
youtube.com · Sep 2021 - ShaderQuest Part 6: Shaping functions
ShaderQuest part six on shaping functions in shaders.
halisavakis.com · Sep 2021 - The Beauty of Bézier Curves
Visual explanation of Bezier curves and how they are built.
youtube.com · Aug 2021 - Voronoi Noise
Catlike Coding tutorial on generating Voronoi noise variants in C#.
catlikecoding.com · Aug 2021 - Dot Product Node - Shader Graph Basics - Episode 7
The dot product node: the math behind it and how to use it in a shader.
youtube.com · Jul 2021 - EPC2021 | Q&A session with Oskar Stålberg | Oskar Stålberg
Q&A under Townscaper's hood: Marching Cubes plus WFC on an irregular quadrilateral grid at interactive speed.
youtube.com · Jul 2021 - Pseudorandom Noise: Noise Variants
Creates fractal and tiling variants of Perlin and value noise.
catlikecoding.com · Jul 2021 - Basic Shader Math - Shader Graph Basics - Episode 4
The add, subtract, multiply and divide nodes, and what basic shader math does.
youtube.com · Jul 2021 - Polar Coordinates
Explains polar coordinates in shaders for radial effects.
ronja-tutorials.com · Jun 2021 - Perlin Noise
Catlike Coding tutorial on implementing Perlin noise in C#.
catlikecoding.com · Jun 2021 - Value Noise
Catlike Coding tutorial on implementing value noise in C#.
catlikecoding.com · May 2021 - Hashing Space
Hashes positions on an arbitrary grid for pseudorandom noise.
catlikecoding.com · Apr 2021 - Basics of Partial Derivative Shader Funcs in Unity! DDX, DDY, FWidth ✔️ 2021.1 | Game Dev Tutorial
Explains partial derivative shader functions DDX, DDY and fwidth.
youtube.com · ~Apr 2021 - The Basics of Dot Product in Unity URP. Vectors, Angles, and Lighting! ✔️ 2021.1 | Game Dev Tutorial
Explains the dot product for vectors, angles and lighting in URP.
youtube.com · ~Apr 2021 - Distinctive Derivative Differences
A look at the different kinds of shader derivatives and how they differ in practice.
bgolus.medium.com · Apr 2021 - Pseudorandom Noise: Hashing
Builds a small xxHash-style hash function and visualizes hash output for pseudorandom noise.
catlikecoding.com · Mar 2021 - Piecewise Interpolation - Alan Zucconi
Explains piecewise interpolation for blending between multiple values.
alanzucconi.com · Jan 2021 - Linear Interpolation - Alan Zucconi
Explains linear interpolation for moving objects in code.
alanzucconi.com · Jan 2021 - Anastasia Opara - Rust for Artists. Art for Rustaceans. — RustFest Global 2020
Translating an artist's search process into code through a computational drawing algorithm in Rust.
youtube.com · Dec 2020 - The Mathematics of Catenary - Alan Zucconi
Explains the math behind catenary curves for hanging cables and chains in games.
alanzucconi.com · Dec 2020 - Implementing Catenaries for Games - Alan Zucconi
Implements catenary curves for hanging cables, wires and chains in games.
alanzucconi.com · Dec 2020 - Interpolation & Velocity • Math for Game Devs [Part 4]
Math for game devs part 4 on interpolation and velocity.
youtube.com · Nov 2020 - Trigonometry • Math for Game Devs [Part 3]
Math for game devs part 3 on trigonometry.
youtube.com · Nov 2020 - Spaces & Cross Product • Math for Game Devs [Part 2]
Math for game devs part 2 on spaces and the cross product.
youtube.com · Nov 2020 - Vectors & Dot Product • Math for Game Devs [Part 1]
Math for game devs part 1 on vectors and the dot product.
youtube.com · Nov 2020 - HSV Shader Graph – Hue Saturation Value
Sets up Hue Saturation Value conversion nodes in Shader Graph.
gamedevbill.com · Oct 2020 - Math in Art - Game Dev Bill
Explains embedding math in art to make shaders cheaper.
gamedevbill.com · Sep 2020 - An Introduction to Floating-Point Arithmetic - Alan Zucconi
Explains how floating-point numbers work in C# and the surprising bugs they can cause.
alanzucconi.com · Aug 2020 - Improving Floating-Point Precision in C#
Techniques for improving floating-point precision in C# for high-precision simulations.
alanzucconi.com · Aug 2020 - An Introduction to Mie Theory
Introduction to Mie theory for atmospheric scattering (members-only post).
alanzucconi.com · Jul 2020 - Progressing in Circles
Medium post by Ben Golus on progressing in circles, a shader or math topic around circular shapes.
medium.com · ~Jun 2020 - Remote Math class for Game Devs (Stream Recording)
Stream recording of a remote math class for game developers.
youtube.com · Mar 2020 - Ultra Effects: Part 8 - Crazy Kaleidoscopes
Recreates a kaleidoscope as a Unity shader using polar coordinates and mirrored angles.
danielilett.com · Feb 2020 - How to Calculate Shader Graph Normals - Game Dev Bill
Calculates normal vectors inside Shader Graph with examples.
gamedevbill.com · Feb 2020 - Game Math: Dot Product, Rulers, And Bouncing Balls
Game math primer on dot products, projection and reflection with bouncing ball examples.
allenchou.net · Jan 2020
Showing the newest 120 of 197. See all 197.