102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
state.c
Go to the documentation of this file.
1/* Recovered game implementation; original addresses identify provenance. */
13#include "pcdogs/game/globals.h"
19#include "pcdogs/math/types.h"
23#include "pcdogs/scene/types.h"
26#include <math.h>
27#include <stdarg.h>
28#include <string.h>
29
30// Original pcdogs.exe: 0x401090
31// Resets node traversal and render state and initializes type-specific actor or transition-node state.
33{
34 struct Scene_Type1RenderOwnerView *node_state = (struct Scene_Type1RenderOwnerView *)(node);
35 int32_t node_type = (uint8_t)(node_state->transform.node_type);
36
38
39 if (node_type == SCENE_NODE_ACTOR)
40 {
41 Model_ResetState((struct Actor_State *)(node_state));
42
44 uint32_t activation_behavior_flags = reset_behavior_flags;
45
46 node_state->behavior_flags = reset_behavior_flags;
47
48 if (activation_behavior_flags & SCENE_OWNER_INITIAL_DISABLED)
49 {
50 activation_behavior_flags |= SCENE_OWNER_DISABLED_LATCH;
52 node_state->behavior_flags = activation_behavior_flags;
53 }
54
55 uint32_t behavior_flags = node_state->behavior_flags;
56
58 {
60 node_state->behavior_flags = behavior_flags;
61 }
62
63 uint16_t animation_frame_count = node_state->animation_frame_count;
64
65 node_state->animation_step_q6 = 0x40;
66 node_state->animation_tick = 0;
67
69 {
70 char dispatch_index = node_state->dispatch_index;
71
72 // TYPE 5 (animated_component): Fixed-frame animation mode for puppies/toy cars. Calculates
73 // specific frame position from frame_index * frame_duration. Sets all bone indices to 0xFF
74 // (unused). Unlike type 6, does NOT sync to parent animation - uses pre-calculated frame offset.
76 {
77 int32_t initial_phase_scale = (uint16_t)(node_state->initial_phase_scale);
78 uint8_t lifecycle_or_traversal_flags =
80
81 node_state->transform.animation_tick_60 = 0xffffffff;
82 node_state->animation_tick = (int32_t)(((uint32_t)animation_frame_count - 1) * initial_phase_scale) >> 6;
84 lifecycle_or_traversal_flags | SCENE_NODE_TRANSFORM_DIRTY;
85
86 return;
87 }
88
89 // TYPE 6 (mesh_component): Synchronized animation mode. Reads animation time from parent actor at
90 // +0xB4, supports looping via flag 0x8000. Used for mesh attachments that follow parent timing.
92 {
94 node_state->animation_source_owner;
95 int32_t source_animation_tick = animation_source_owner->animation_tick;
96
97 node_state->animation_tick = source_animation_tick;
98
99 if (!(animation_source_owner->behavior_flags & SCENE_OWNER_BYPASS_CHANNEL_WRAP) && source_animation_tick >= ((int32_t)animation_frame_count << 6) - 0x40)
100 {
101 uint32_t behavior_flags_1 = node_state->behavior_flags;
102
103 if (!(behavior_flags_1 & SCENE_OWNER_LOOP_ANIMATION))
104 {
105 uint8_t lifecycle_or_traversal_flags_1 =
107
108 node_state->animation_tick = ((uint32_t)animation_frame_count << 6) - 0x40;
109 node_state->transform.animation_tick_60 = 0xffffffff;
111 lifecycle_or_traversal_flags_1 | SCENE_NODE_TRANSFORM_DIRTY;
112
113 return;
114 }
115
116 if (behavior_flags_1 & SCENE_OWNER_BYPASS_CHANNEL_WRAP)
117 node_state->animation_tick = (int64_t)source_animation_tick % (((uint32_t)animation_frame_count << 6) - 0x40);
118 }
119 }
120 }
121
122 char lifecycle_or_traversal_flags_2 = node_state->transform.lifecycle_or_traversal_flags;
123
124 node_state->transform.animation_tick_60 = 0xffffffff;
125 node_state->transform.lifecycle_or_traversal_flags = lifecycle_or_traversal_flags_2 | SCENE_NODE_TRANSFORM_DIRTY;
126 }
127 else if (node_type != SCENE_NODE_STATIC)
128 node_state->transform.animation_tick_60 = 0xffffffff;
129}
130
131// Original pcdogs.exe: 0x40ede0
132// Samples the owner's animation channels when its tick changes, then composes the node's world transform and displacement from its parent. The 0xffff sentinel disables updates. Looping channels require nonzero decoded end times because the remainder operations have no zero-divisor guard.
133void Scene_UpdateNodeAnimation(struct Scene_Type1RenderOwnerView *owner, struct Scene_Node *parent_node, struct Scene_Node *node)
134{
135 struct Scene_Node *node_1 = node;
136
137 if (node_1->anim_update_sentinel == 0xffff)
138 return;
139
140 int32_t animation_tick = owner->animation_tick;
141
142 if (node_1->cached_anim_tick != animation_tick)
143 {
144 node_1->cached_anim_tick = animation_tick;
145
146 struct Animation_DataBlock *animation_block =
148
149 if (animation_block)
150 {
151 int32_t channel_sample_tick = animation_tick;
152 int32_t node_type_1 = (uint32_t)node_1->node_type;
153 int32_t bypass_channel_time_wrap_1 = owner->behavior_flags & SCENE_OWNER_BYPASS_CHANNEL_WRAP;
154 int32_t bypass_channel_time_wrap = bypass_channel_time_wrap_1;
155
156 /* Each active channel computes its own wrapped sample time below. */
157 int32_t position_anim_channel_index_or_minus_one =
159
160 if (position_anim_channel_index_or_minus_one >= 0)
161 {
162 struct Animation_SplineChannelVec3 *vec3_track =
163 &animation_block->position_channels[position_anim_channel_index_or_minus_one];
164
165 if (!bypass_channel_time_wrap_1)
166 {
167 channel_sample_tick =
169
170 if (animation_tick < channel_sample_tick)
171 channel_sample_tick = animation_tick;
173 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
174 }
175
176 Animation_InterpolateVec3(channel_sample_tick, vec3_track, &node_1->local_pos);
177 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
178 }
179
180 int32_t rotation_anim_channel_index_or_minus_one =
182
183 if (rotation_anim_channel_index_or_minus_one >= 0)
184 {
185 struct Animation_SplineChannelQuat *quat_track =
186 &animation_block->rotation_channels[rotation_anim_channel_index_or_minus_one];
187
188 if (!bypass_channel_time_wrap_1)
189 {
190 channel_sample_tick =
192
193 if (animation_tick < channel_sample_tick)
194 channel_sample_tick = animation_tick;
196 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
197 }
198
199 Animation_ConvertQuatToRotMatrix(channel_sample_tick, quat_track,
200 &node_1->local_rot_matrix);
201 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
202 }
203
204 int32_t scale_anim_channel_index_or_minus_one =
206
207 if (scale_anim_channel_index_or_minus_one >= 0)
208 {
209 struct Animation_SplineChannelVec3 *vec3_track_1 =
210 &animation_block->scale_channels[scale_anim_channel_index_or_minus_one];
211
212 if (!bypass_channel_time_wrap_1)
213 {
214 channel_sample_tick = vec3_track_1->packed_time_bias_and_end_time >> 0xe & ANIMATION_SPLINE_TIME_Q6_MASK;
215
216 if (animation_tick < channel_sample_tick)
217 channel_sample_tick = animation_tick;
218 else if (vec3_track_1->channel_flags & ANIMATION_SPLINE_WRAP_SAMPLE_TIME)
219 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
220 }
221
222 struct Math_Vec3I32 sampled_extent;
223
224 Animation_InterpolateVec3(channel_sample_tick, vec3_track_1, &sampled_extent);
225
226 if (node_type_1 == SCENE_NODE_EVENT)
227 {
228 int32_t z = sampled_extent.z;
229 int16_t box_extent_y_q6 = (int16_t)(sampled_extent.y >> 6);
230
231 ((struct Actor_CollisionShapeNodeView *)node_1)->shape.box.extent_x_q6 = (int16_t)(sampled_extent.x >> 6);
232 ((struct Actor_CollisionShapeNodeView *)node_1)->shape.box.extent_y_q6 = box_extent_y_q6;
233 ((struct Actor_CollisionShapeNodeView *)node_1)->shape.box.extent_z_q6 = (int16_t)(z >> 6);
234
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);
238
239 ((struct Actor_CollisionShapeNodeView *)node)->shape.box.collision_probe_radius_q6 = (int16_t)(Math_SqrtFP12(((int32_t)((int64_t)(sampled_extent_z_squared_wide + sampled_extent_x_squared_wide + sampled_extent_y_squared_wide) >> MATH_Q12_SHIFT))) >> 6);
240 node_1 = node;
241 }
242 else if (node_type_1 != SCENE_NODE_BILLBOARD)
243 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
244 else
245 {
246 int16_t sprite_extent_y_q6 = (int16_t)(sampled_extent.y >> 6);
247
248 node_1->render_param_1 = (int16_t)(sampled_extent.x >> 6);
249 ((struct Scene_BillboardNodeView *)node_1)->bound_extent.y = sprite_extent_y_q6;
250 }
251 }
252
253 if (scale_anim_channel_index_or_minus_one < 0 || (node_type_1 != SCENE_NODE_EVENT && node_type_1 != SCENE_NODE_BILLBOARD))
254 {
255 int32_t submesh_index;
256 int32_t morph_channel_index;
257 int32_t submesh_index_1;
258
259 if (node_type_1 == SCENE_NODE_ACTOR || node_type_1 == SCENE_NODE_SUBMESH)
260 {
261 if (node_type_1 == SCENE_NODE_ACTOR)
262 {
263 submesh_index_1 = (int32_t)node_1->type_1_attach_point_index;
264 morph_channel_index = (int32_t)node_1->type_1_bone_channel_index;
265 submesh_index = submesh_index_1;
266 }
267 else
268 {
269 submesh_index_1 = (int32_t)node_1->render_entry_index_for_type_6;
270 morph_channel_index = (int32_t)node_1->type_specific_secondary_render_or_sound_index;
271 submesh_index = submesh_index_1;
272 }
273
274 if (morph_channel_index >= 0 && submesh_index_1 >= 0)
275 {
276 if (!(owner->behavior_flags & SCENE_OWNER_CULLED))
277 {
278 struct Animation_SplineChannelMorph *morph_channel =
279 &animation_block->morph_channels[morph_channel_index];
280
281 if (!bypass_channel_time_wrap_1)
282 {
283 channel_sample_tick =
285
286 if (animation_tick < channel_sample_tick)
287 channel_sample_tick = animation_tick;
288 else if (morph_channel->channel_flags & ANIMATION_SPLINE_WRAP_SAMPLE_TIME)
289 channel_sample_tick =
290 (int64_t)animation_tick % channel_sample_tick;
291 }
292
293 Bone_TransformVerticesWeighted(channel_sample_tick, morph_channel,
294 (struct Bone_SkinningOwnerView *)owner, (struct Submesh_Entry *)&owner->render_entries[submesh_index]);
295 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
296 }
297 else
298 node_1->cached_anim_tick = -1;
299 }
300 }
301
302 if (node_type_1 == SCENE_NODE_SCALAR_PARAMETERS)
303 {
304 int32_t render_entry_index_for_type_6 =
305 (int32_t)node_1->render_entry_index_for_type_6;
306
307 if (render_entry_index_for_type_6 >= 0)
308 {
309 struct Animation_SplineChannelScalar *channel =
310 &animation_block->scalar_channels[render_entry_index_for_type_6];
311
312 if (!bypass_channel_time_wrap_1)
313 {
314 channel_sample_tick =
316
317 if (animation_tick < channel_sample_tick)
318 channel_sample_tick = animation_tick;
320 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
321 }
322
323 Animation_InterpolateSpline(channel_sample_tick, channel,
324 (int16_t *)&node_1->render_param_1);
325 bypass_channel_time_wrap_1 = bypass_channel_time_wrap;
326 }
327
328 int32_t type_specific_secondary_render_or_sound_index =
330
331 if (type_specific_secondary_render_or_sound_index >= 0)
332 {
333 struct Animation_SplineChannelScalar *channel_1 = &animation_block->scalar_channels[type_specific_secondary_render_or_sound_index];
334
335 if (!bypass_channel_time_wrap_1)
336 {
337 channel_sample_tick =
339
340 if (animation_tick < channel_sample_tick)
341 channel_sample_tick = animation_tick;
343 channel_sample_tick = (int64_t)animation_tick % channel_sample_tick;
344 }
345
346 Animation_InterpolateSpline(channel_sample_tick, channel_1,
347 &node_1->billboard_scale.y);
348 }
349 }
350 }
351 }
352 }
353
354 // Common: worldPos = parentRot * localPos + parentPos. Matrix i16 FP12 at parent+44
355 node_1->world_delta_pos.x = node_1->world_pos.x;
356 node_1->world_delta_pos.y = node_1->world_pos.y;
357 node_1->world_delta_pos.z = node_1->world_pos.z;
358
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);
362
363 node_1->world_pos.x =
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)));
365
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);
369
370 node->world_pos.y =
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)));
372
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);
376
377 node->world_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)));
379
380 int32_t z_1 = node->world_delta_pos.z;
381
382 node_1->world_delta_pos.x = node_1->world_pos.x - node_1->world_delta_pos.x;
383
384 int32_t world_z_delta = node->world_pos.z - z_1;
385
386 node->world_delta_pos.y = node->world_pos.y - node->world_delta_pos.y;
387 node->world_delta_pos.z = world_z_delta;
389 &parent_node->world_rot_matrix);
390}
391
392// Original pcdogs.exe: 0x412fa0
393// Resets scene signals, actors, animation and render state, camera state, and powerup handlers. Repeated initialization takes the shorter actor-system and powerup reset path.
395{
397 {
399
400 /* tailcall */
402 }
403
404 // Clear input event queue to discard any pending input
406 // Reset game frame counter to 0
408 g_frameCounter = 0;
409
410 // Reset all animation controllers for the level
411 for (uint32_t list_index = 0; list_index < 6; list_index += 1)
412 {
413 for (struct Actor_State *list_next = g_objectNodeRoot->animation_actor_lists[list_index]; list_next;
414 list_next = list_next->list_next)
415 {
416 uint8_t reset_attach_flags = list_next->attach_slot_index & (uint8_t)~SCENE_ATTACHMENT_DISABLED;
417
418 list_next->attach_slot_index = reset_attach_flags;
419
420 // For actors with animation chains (type < 12), update chain state
421 if (reset_attach_flags & SCENE_ATTACHMENT_ACTIVE && list_next->render_layer <= SCENE_SOUND_EVENT_INDEX)
422 Actor_ResetChainState(list_next, -1);
423 }
424 }
425
426 Graphics_MarkMeshDirty(g_objectNodeRoot->model_relocated_ptr_80);
427
428 // Traverse scene graph with update flag 0x80 to initialize transforms
429 struct Scene_Node *object_node_root_2 = g_objectNodeRoot;
430 struct Scene_StaticRenderNodeView **static_render_nodes = object_node_root_2->static_render_nodes;
431 struct Scene_StaticRenderNodeView *animated_node = *static_render_nodes;
432
433 if (animated_node)
434 {
435 do
436 {
437 static_render_nodes += 1;
438 animated_node->last_render_frame = 0;
439 animated_node = *static_render_nodes;
440 } while (animated_node);
441
442 object_node_root_2 = g_objectNodeRoot;
443 }
444
445 object_node_root_2->traversal_flags |= SCENE_NODE_VISIBILITY_HIDDEN;
447
448 struct Scene_Node *object_node_root = g_objectNodeRoot;
449
450 object_node_root->traversal_flags &= (uint8_t)~SCENE_NODE_VISIBILITY_HIDDEN;
453
454 /* tailcall */
456}
#define ACTOR_ROOT_MOTION_REVERSE
Definition constants.h:24
#define ACTOR_BEHAVIOR_MOVEMENT_LOCKED
Definition constants.h:16
#define ACTOR_ROOT_MOTION_STEP
Definition constants.h:26
#define ACTOR_ROOT_MOTION_LATCHED
Definition constants.h:25
#define ACTOR_BEHAVIOR_MOVING_LEFT
Definition constants.h:17
#define ACTOR_BEHAVIOR_BYPASS_COLLISION
Definition constants.h:18
#define ACTOR_BEHAVIOR_MOVEMENT_ACTIVE
Definition constants.h:19
void Actor_ResetChainState(struct Actor_State *actor, int32_t chain_index)
Definition animation.c:748
#define ANIMATION_SPLINE_TIME_Q6_MASK
Definition constants.h:37
#define ANIMATION_SPLINE_WRAP_SAMPLE_TIME
Definition enums.h:55
void Bone_TransformVerticesWeighted(uint32_t sample_time, struct Animation_SplineChannelMorph *bone_channels, struct Bone_SkinningOwnerView *actor, struct Submesh_Entry *mesh_piece)
Definition skinning.c:132
void Animation_InterpolateVec3(uint32_t frame_time, struct Animation_SplineChannelVec3 *vec3_track, struct Math_Vec3I32 *out_vec3)
void Animation_InterpolateSpline(uint32_t sample_time, struct Animation_SplineChannelScalar *channel, int16_t *out_value)
void Animation_ConvertQuatToRotMatrix(uint32_t frame_time, struct Animation_SplineChannelQuat *quat_track, struct Math_Matrix3x3I16 *out_matrix)
Definition quaternion.c:262
void Model_ResetState(struct Actor_State *actor)
Definition model.c:92
#define g_cameraData
Definition globals.h:63
void Camera_Initialize(struct Graphics_Render_ListState *render_state)
Definition state.c:467
#define GAME_TRANSITION_RUNNING
Definition constants.h:17
#define Game_FrameTransitionFlags
Definition globals.h:47
void Graphics_MarkMeshDirty(struct Mesh_CmdList *cmd_list)
Definition meshes.c:33
void Level_InitializeActorSystem(void)
Definition loading.c:53
#define MATH_Q12_SHIFT
Definition constants.h:8
int32_t Math_SqrtFP12(uint32_t value)
void Math_MulMat3x3Q12(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *right_factor, struct Math_Matrix3x3I16 const *left_factor)
Definition matrices.c:11
void Powerup_InitializeSystem(void)
Definition lifecycle.c:292
#define SCENE_OWNER_INITIAL_DISABLED
Definition constants.h:39
#define SCENE_OWNER_BYPASS_CHANNEL_WRAP
Definition constants.h:43
#define SCENE_NODE_VISIBILITY_HIDDEN
Definition constants.h:25
@ SCENE_ANIMATION_PARENT_TIME
Definition constants.h:21
@ SCENE_ANIMATION_FIXED_PHASE
Definition constants.h:20
#define SCENE_NODE_FORCE_REINITIALIZE
Definition constants.h:32
#define SCENE_OWNER_LOOP_ANIMATION
Definition constants.h:42
#define SCENE_SOUND_EVENT_INDEX
Definition constants.h:52
#define SCENE_OWNER_DISABLED_LATCH
Definition constants.h:38
#define SCENE_OWNER_ROOT_MOTION_ACTIVE
Definition constants.h:40
#define SCENE_NODE_DISABLED
Definition constants.h:24
#define SCENE_OWNER_INITIAL_ROOT_MOTION
Definition constants.h:41
#define SCENE_OWNER_CULLED
Definition constants.h:33
@ SCENE_NODE_SCALAR_PARAMETERS
Definition constants.h:15
@ SCENE_NODE_EVENT
Definition constants.h:10
@ SCENE_NODE_ACTOR
Definition constants.h:7
@ SCENE_NODE_STATIC
Definition constants.h:8
@ SCENE_NODE_SUBMESH
Definition constants.h:13
@ SCENE_NODE_BILLBOARD
Definition constants.h:14
#define SCENE_ATTACHMENT_ACTIVE
Definition constants.h:51
#define SCENE_NODE_TRANSFORM_DIRTY
Definition constants.h:31
#define SCENE_ATTACHMENT_DISABLED
Definition constants.h:50
void Scene_TraverseNodeTree(struct Scene_Node *node, struct Actor_State *actor, uint32_t traversal_flags)
Definition rendering.c:39
#define g_objectNodeRoot
Definition globals.h:12
void Scene_UpdateNodeAnimation(struct Scene_Type1RenderOwnerView *owner, struct Scene_Node *parent_node, struct Scene_Node *node)
Definition state.c:133
void Scene_ResetState()
Definition state.c:394
void Scene_InitNodeState(struct Scene_Node *node)
Definition state.c:32
void Signal_ClearQueue(void)
Definition signals.c:30
int16_t collision_probe_radius_q6
Definition types.h:39
union Actor_CollisionShapeExtentOverlay shape
Definition types.h:562
struct Animation_SplineChannelVec3 * scale_channels
Definition types.h:767
struct Animation_SplineChannelVec3 * position_channels
Definition types.h:764
struct Animation_SplineChannelScalar * scalar_channels
Definition types.h:769
struct Animation_SplineChannelMorph * morph_channels
Definition types.h:768
struct Animation_SplineChannelQuat * rotation_channels
Definition types.h:765
int32_t packed_timing_or_direct_target_index
Definition types.h:309
Animation_SplineChannelFlags channel_flags
Definition types.h:313
int32_t packed_time_bias_and_end_time
Definition types.h:324
Animation_SplineChannelFlags channel_flags
Definition types.h:328
int32_t packed_time_bias_and_end_time
Definition types.h:354
Animation_SplineChannelFlags channel_flags
Definition types.h:358
int32_t packed_time_bias_and_end_time
Definition types.h:381
Animation_SplineChannelFlags channel_flags
Definition types.h:385
int16_t m21
Definition types.h:169
int16_t m00
Definition types.h:162
int16_t m01
Definition types.h:163
int16_t m12
Definition types.h:167
int16_t m11
Definition types.h:166
int16_t m20
Definition types.h:168
int16_t m22
Definition types.h:170
int16_t m02
Definition types.h:164
int16_t m10
Definition types.h:165
int16_t y
Definition types.h:403
int32_t y
Definition types.h:471
int32_t x
Definition types.h:470
int32_t z
Definition types.h:472
struct Math_Vec2I16 bound_extent
Definition types.h:287
struct Math_Vec3I32 local_pos
Definition types.h:117
char type_1_bone_channel_index
Definition types.h:205
uint16_t anim_update_sentinel
Definition types.h:126
char rotation_anim_channel_index_or_minus_one
Definition types.h:123
int32_t cached_anim_tick
Definition types.h:128
char position_anim_channel_index_or_minus_one
Definition types.h:122
char type_specific_secondary_render_or_sound_index
Definition types.h:132
struct Math_Matrix3x3I16 local_rot_matrix
Definition types.h:115
uint8_t traversal_flags
Definition types.h:130
struct Math_Vec2I16 billboard_scale
Definition types.h:137
char scale_anim_channel_index_or_minus_one
Definition types.h:125
uint8_t node_type
Definition types.h:129
struct Math_Matrix3x3I16 world_rot_matrix
Definition types.h:118
struct Scene_StaticRenderNodeView ** static_render_nodes
Definition types.h:158
int32_t render_param_1
Definition types.h:136
char type_1_attach_point_index
Definition types.h:204
struct Math_Vec3I32 world_pos
Definition types.h:120
struct Math_Vec3I32 world_delta_pos
Definition types.h:121
char render_entry_index_for_type_6
Definition types.h:131
uint8_t lifecycle_or_traversal_flags
Definition types.h:269
uint32_t animation_tick_60
Definition types.h:267
struct Scene_TransformNodePrefix transform
Definition types.h:324
uint16_t animation_frame_count
Definition types.h:365
uint16_t initial_phase_scale
Definition types.h:364
struct Scene_Type1RenderOwnerView * animation_source_owner
Definition types.h:367
union Scene_AnimationSource animation_source
Definition types.h:352
Definition types.h:322
struct Actor_CollisionBoxExtentView box
Definition types.h:288
struct Animation_DataBlock * direct_block
Definition types.h:12
#define g_frameCounter
Definition values.h:501