MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / get_node_local_transform

Function get_node_local_transform

libraries/lib-model-io/src/gltf-io.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107inline float4x4 get_node_local_transform(const cgltf_node * node)
108{
109 float matrix[16];
110 cgltf_node_transform_local(node, matrix);
111 return float4x4(
112 {matrix[0], matrix[1], matrix[2], matrix[3]},
113 {matrix[4], matrix[5], matrix[6], matrix[7]},
114 {matrix[8], matrix[9], matrix[10], matrix[11]},
115 {matrix[12], matrix[13], matrix[14], matrix[15]}
116 );
117}
118
119inline float4x4 get_node_world_transform(const cgltf_node * node)
120{

Callers 1

import_gltf_sceneMethod · 0.85

Calls 1

Tested by

no test coverage detected