151 int32_t channel_sample_tick = animation_tick;
152 int32_t node_type_1 = (uint32_t)node_1->
node_type;
154 int32_t bypass_channel_time_wrap = bypass_channel_time_wrap_1;
157 int32_t position_anim_channel_index_or_minus_one =
160 if (position_anim_channel_index_or_minus_one >= 0)
165 if (!bypass_channel_time_wrap_1)
167 channel_sample_tick =
170 if (animation_tick < channel_sample_tick)
171 channel_sample_tick = animation_tick;
173 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
177 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
180 int32_t rotation_anim_channel_index_or_minus_one =
183 if (rotation_anim_channel_index_or_minus_one >= 0)
188 if (!bypass_channel_time_wrap_1)
190 channel_sample_tick =
193 if (animation_tick < channel_sample_tick)
194 channel_sample_tick = animation_tick;
196 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
201 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
204 int32_t scale_anim_channel_index_or_minus_one =
207 if (scale_anim_channel_index_or_minus_one >= 0)
210 &animation_block->
scale_channels[scale_anim_channel_index_or_minus_one];
212 if (!bypass_channel_time_wrap_1)
216 if (animation_tick < channel_sample_tick)
217 channel_sample_tick = animation_tick;
219 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
228 int32_t
z = sampled_extent.
z;
229 int16_t box_extent_y_q6 = (int16_t)(sampled_extent.
y >> 6);
235 uint64_t sampled_extent_x_squared_wide = (uint64_t)((int64_t)sampled_extent.
x * sampled_extent.
x);
236 uint64_t sampled_extent_y_squared_wide = (uint64_t)((int64_t)sampled_extent.
y * sampled_extent.
y);
237 uint64_t sampled_extent_z_squared_wide = (uint64_t)((int64_t)sampled_extent.
z * sampled_extent.
z);
243 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
246 int16_t sprite_extent_y_q6 = (int16_t)(sampled_extent.
y >> 6);
255 int32_t submesh_index;
256 int32_t morph_channel_index;
257 int32_t submesh_index_1;
265 submesh_index = submesh_index_1;
271 submesh_index = submesh_index_1;
274 if (morph_channel_index >= 0 && submesh_index_1 >= 0)
281 if (!bypass_channel_time_wrap_1)
283 channel_sample_tick =
286 if (animation_tick < channel_sample_tick)
287 channel_sample_tick = animation_tick;
289 channel_sample_tick =
290 (int64_t)animation_tick % channel_sample_tick;
295 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
304 int32_t render_entry_index_for_type_6 =
307 if (render_entry_index_for_type_6 >= 0)
312 if (!bypass_channel_time_wrap_1)
314 channel_sample_tick =
317 if (animation_tick < channel_sample_tick)
318 channel_sample_tick = animation_tick;
320 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
325 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
328 int32_t type_specific_secondary_render_or_sound_index =
331 if (type_specific_secondary_render_or_sound_index >= 0)
335 if (!bypass_channel_time_wrap_1)
337 channel_sample_tick =
340 if (animation_tick < channel_sample_tick)
341 channel_sample_tick = animation_tick;
343 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
359 uint64_t parent_node_world_rot_matrix_m00_times_node_local_pos_x_wide = (uint64_t)((int64_t)(int32_t)parent_node->
world_rot_matrix.
m00 * node_1->
local_pos.
x);
360 uint64_t parent_node_world_rot_matrix_m01_times_node_local_pos_y_wide = (uint64_t)((int64_t)(int32_t)parent_node->
world_rot_matrix.
m01 * node_1->
local_pos.
y);
361 uint64_t parent_node_world_rot_matrix_m02_times_node_local_pos_z_wide = (uint64_t)((int64_t)(int32_t)parent_node->
world_rot_matrix.
m02 * node_1->
local_pos.
z);
364 parent_node->
world_pos.
x + (((int32_t)((int64_t)(parent_node_world_rot_matrix_m02_times_node_local_pos_z_wide + parent_node_world_rot_matrix_m00_times_node_local_pos_x_wide + parent_node_world_rot_matrix_m01_times_node_local_pos_y_wide) >>
MATH_Q12_SHIFT)));
366 uint64_t parent_node_world_rot_matrix_m10_times_node_local_pos_x_wide = (uint64_t)((int64_t)(int32_t)parent_node->
world_rot_matrix.
m10 * node_1->
local_pos.
x);
367 uint64_t parent_node_world_rot_matrix_m11_times_node_local_pos_y_wide = (uint64_t)((int64_t)(int32_t)parent_node->
world_rot_matrix.
m11 * node_1->
local_pos.
y);
368 uint64_t parent_node_world_rot_matrix_m12_times_node_local_pos_z_wide = (uint64_t)((int64_t)(int32_t)parent_node->
world_rot_matrix.
m12 * node_1->
local_pos.
z);
371 parent_node->
world_pos.
y + (((int32_t)((int64_t)(parent_node_world_rot_matrix_m12_times_node_local_pos_z_wide + parent_node_world_rot_matrix_m10_times_node_local_pos_x_wide + parent_node_world_rot_matrix_m11_times_node_local_pos_y_wide) >>
MATH_Q12_SHIFT)));
373 uint64_t parent_node_world_rot_matrix_m20_times_node_local_pos_x_wide = (uint64_t)((int64_t)(int32_t)parent_node->
world_rot_matrix.
m20 * node_1->
local_pos.
x);
374 uint64_t parent_node_world_rot_matrix_m21_times_node_local_pos_y_wide = (uint64_t)((int64_t)(int32_t)parent_node->
world_rot_matrix.
m21 * node_1->
local_pos.
y);
375 uint64_t parent_node_world_rot_matrix_m22_times_node_local_pos_z_wide = (uint64_t)((int64_t)(int32_t)parent_node->
world_rot_matrix.
m22 * node_1->
local_pos.
z);
378 parent_node->
world_pos.
z + (((int32_t)((int64_t)(parent_node_world_rot_matrix_m22_times_node_local_pos_z_wide + parent_node_world_rot_matrix_m20_times_node_local_pos_x_wide + parent_node_world_rot_matrix_m21_times_node_local_pos_y_wide) >>
MATH_Q12_SHIFT)));
384 int32_t world_z_delta = node->
world_pos.
z - z_1;