local function yaw2vec (yaw, pitch) return {x = -math.cos(yaw) * math.cos(pitch), y = math.sin(pitch), z = math.sin(yaw) * math.cos(pitch)} end