A node's transform in the scene: its local matrix after those of its ancestors, root first. The parent of every node is indexed once by gltf_load or gltf_validate, so each call only walks up the chain. It gives false for an index out of range, or an asset that was never validated.
Signature
gltf_node_world :: (asset: *Gltf_Asset, index: s64) -> (Matrix4, bool)
#import "Math";
asset, error := gltf_load("{\"asset\":{\"version\":\"2.0\"},\"nodes\":[{\"translation\":[1,0,0],\"children\":[1]},{\"translation\":[0,2,0]}]}");
assert(error.kind == .NONE);
defer gltf_free(*asset);
world, ok := gltf_node_world(*asset, 1);
assert(ok);
assert(transform_point(world, xyz(0, 0, 0)) == xyz(1, 2, 0));