Skip to main content

gltforge_node_transform

Function gltforge_node_transform 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn gltforge_node_transform( ptr: *const UnityGltf, node_idx: u32, out: *mut f32, )
Expand description

Write the local transform of node node_idx into the caller-supplied 10-element f32 buffer.

Layout: [px, py, pz, rx, ry, rz, rw, sx, sy, sz] — position (Unity left-handed), rotation quaternion (xyzw, Unity left-handed), scale. Falls back to identity if the node index is out of range.

§Safety

ptr must be a valid, non-null handle. out must point to at least 10 writable f32 values.