Half-Life SDK Programming #3.1: Vector maths

Опубликовано: 14 Март 2026
на канале: Admer456
4,851
241

Vectors in Half-Life SDK! (I swear, not nearly as scary as in high school)
This one sure took me a while, cuz' things got rather busy IRL again.
I've been working on HL Decay Solo Mission, HL: WAR and keeping up with college, but I finally found the time to finish editing this thing.

Timestamps:
00:00 - Intro gag
00:27 - Introduction
01:01 - The Vector class
01:32 - Numbers as positions in space (distance between points)
02:22 - Directional vectors (Normalize, unit vectors)
02:44 - How gravity and velocity kinda work
03:23 - The dot product
04:01 - Getting the angle between 2 vectors
04:35 - UTIL_MakeVectors
05:12 - Improving the camera entity
06:55 - The code
08:15 - The result
08:26 - What's next

My Discord server for HL SDK stuff, among other things:   / discord  
The Whole Half-Life: https://twhl.info/