102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
attachments.c
Go to the documentation of this file.
1/* Recovered game implementation; original addresses identify provenance. */
14#include "pcdogs/actor/types.h"
18#include "pcdogs/entity/types.h"
19#include "pcdogs/game/types.h"
21#include "pcdogs/level/types.h"
23#include "pcdogs/math/types.h"
26#include "pcdogs/scene/types.h"
28#include <math.h>
29#include <stdarg.h>
30#include <string.h>
31
32// Original pcdogs.exe: 0x404670
33// Ends the current attachment lifetime, releases the referenced actor, and cancels an owned camera transition when applicable. The negated lifetime is stored through its low byte.
35{
37 record->collision_records[1].definition));
38
39 struct Actor_State *attached_actor = record->attached_actors[1];
40
41 if (attached_actor)
42 {
43 attached_actor->fade_timer = 1;
44
45 struct Actor_State *attached_actor_for_release = record->attached_actors[1];
46 uint8_t attach_refcount = attached_actor_for_release->attach_refcount;
47
49 attached_actor_for_release->attach_refcount = attach_refcount - 1;
50
51 record->attached_actors[1] = NULL;
52 }
53
54 struct Level_Data *current_level = pkg_resource_current_level_data;
55 int32_t current_entity_index = (uint16_t)(current_level->current_entity_index);
56
57 if (current_entity_index != (int32_t)record->entity_index)
58 return;
59
60 struct Pkg_CameraDef *cam_current = current_level->cam_current;
61
62 if (cam_current && !(cam_current->camera_type & CAMERA_DEFINITION_MODE_MASK) && cam_current->flags & CAMERA_DEFINITION_ORBIT && cam_current->transition_speed)
63 current_level->cam_current = NULL;
64}
65
66// Original pcdogs.exe: 0x405f40
67// Clears both collision-record attachment references and decrements each referenced actor's count only when that count is nonzero.
69{
70 for (unsigned i = 0; i < 2; ++i)
71 {
72 struct Actor_State *actor = record->attached_actors[i];
73
74 if (actor)
75 {
76 record->attached_actors[i] = NULL;
77
78 if (actor->attach_refcount)
79 --actor->attach_refcount;
80 }
81 }
82}
83
84// Original pcdogs.exe: 0x436080
85// Computes displacement from a parent or attachment socket, optionally composing orientation from the selected face. Missing or dying attachments mark the actor for removal.
87{
88 struct Scene_TransformNodePrefix *attachment_transform_node = actor->attachment_transform_node;
90
93
95 {
97
98 return;
99 }
100
105
106 uint32_t attachment_face_index_plus_one = actor->attachment_options >> 1;
107 struct Math_Matrix3x3I16 *left_factor;
108 struct Actor_State *transformed_actor;
109
110 if (attachment_face_index_plus_one)
111 {
112 struct Actor_State *mesh_parent_actor = actor->parent_actor;
113 struct Mesh_RuntimeVertex *runtime_vertices = mesh_parent_actor->runtime_vertex_array;
114 struct Mesh_Polygon *selected_face = &mesh_parent_actor->mesh_polygon_array[attachment_face_index_plus_one - 1];
115 int32_t face_vertex0_index = (uint16_t)(selected_face->vert_idx[0]);
116 struct Mesh_RuntimeVertex *face_vertex0 = &runtime_vertices[face_vertex0_index];
117 int32_t face_vertex1_index = (uint16_t)(selected_face->vert_idx[1]);
118 struct Mesh_RuntimeVertex *face_vertex1 = &runtime_vertices[face_vertex1_index];
119 int32_t face_vertex2_index = (uint16_t)(selected_face->vert_idx[2]);
120 struct Mesh_RuntimeVertex *face_vertex2 = &runtime_vertices[face_vertex2_index];
121 int32_t face_vertex3_index = (uint16_t)(selected_face->vert_idx[3]);
122 struct Mesh_RuntimeVertex *face_vertex3 = &runtime_vertices[face_vertex3_index];
123 int32_t face_center_x = ((int32_t)face_vertex2->pos.x + (int32_t)face_vertex1->pos.x + (int32_t)face_vertex0->pos.x + (int32_t)face_vertex3->pos.x) << 4 & ((uint32_t)~PHYSICS_POSITION_FRACTION_MASK);
124 int32_t face_center_y = ((int32_t)face_vertex3->pos.y + (int32_t)face_vertex2->pos.y + (int32_t)face_vertex1->pos.y + (int32_t)face_vertex0->pos.y) << 4 & ((uint32_t)~PHYSICS_POSITION_FRACTION_MASK);
125 int32_t face_center_z = ((int32_t)face_vertex3->pos.z + (int32_t)face_vertex2->pos.z + (int32_t)face_vertex1->pos.z + (int32_t)face_vertex0->pos.z) << 4;
126
127 face_center_z &= ~PHYSICS_POSITION_FRACTION_MASK;
128 left_factor = &attachment_transform_node->world_rot_matrix;
129
130 int64_t face_row_x_x_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m00 * face_center_x;
131 int64_t face_row_x_y_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m01 * face_center_y;
132 int64_t face_row_x_z_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m02 * face_center_z;
133
134 actor->sub_pos.x =
135 attachment_transform_node->world_position.x + ((int32_t)(((uint64_t)face_row_x_z_product_wide + (uint64_t)face_row_x_x_product_wide + (uint64_t)face_row_x_y_product_wide) >> PHYSICS_FIXED_FRACTION_BITS));
136
137 int64_t face_row_y_x_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m10 * face_center_x;
138 int64_t face_row_y_y_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m11 * face_center_y;
139 int64_t face_row_y_z_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m12 * face_center_z;
140
141 actor->sub_pos.y =
142 attachment_transform_node->world_position.y + ((int32_t)(((uint64_t)face_row_y_z_product_wide + (uint64_t)face_row_y_x_product_wide + (uint64_t)face_row_y_y_product_wide) >> PHYSICS_FIXED_FRACTION_BITS));
143
144 int64_t face_row_z_x_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m20 * face_center_x;
145 int64_t face_row_z_y_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m21 * face_center_y;
146 int64_t face_row_z_z_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m22 * face_center_z;
147
148 transformed_actor = actor;
149 actor->sub_pos.z = (int32_t)(uintptr_t)(&((struct Entity *)attachment_transform_node)->script_base_ptr[(int32_t)(((uint64_t)face_row_z_z_product_wide + (uint64_t)face_row_z_x_product_wide + (uint64_t)face_row_z_y_product_wide) >> PHYSICS_FIXED_FRACTION_BITS)]);
150 }
151 else
152 {
153 left_factor = &attachment_transform_node->world_rot_matrix;
154
155 int64_t offset_row_x_x_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m00 * actor->attach_offset.x;
156 int64_t offset_row_x_y_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m01 * actor->attach_offset.y;
157 int64_t offset_row_x_z_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m02 * actor->attach_offset.z;
158
159 actor->sub_pos.x =
160 attachment_transform_node->world_position.x + ((int32_t)(((uint64_t)offset_row_x_z_product_wide + (uint64_t)offset_row_x_x_product_wide + (uint64_t)offset_row_x_y_product_wide) >> PHYSICS_FIXED_FRACTION_BITS));
161
162 int64_t offset_row_y_x_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m10 * actor->attach_offset.x;
163 int64_t offset_row_y_y_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m11 * actor->attach_offset.y;
164 int64_t offset_row_y_z_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m12 * actor->attach_offset.z;
165
166 actor->sub_pos.y =
167 attachment_transform_node->world_position.y + ((int32_t)(((uint64_t)offset_row_y_z_product_wide + (uint64_t)offset_row_y_x_product_wide + (uint64_t)offset_row_y_y_product_wide) >> PHYSICS_FIXED_FRACTION_BITS));
168
169 int64_t offset_row_z_x_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m20 * actor->attach_offset.x;
170 int64_t offset_row_z_y_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m21 * actor->attach_offset.y;
171 int64_t offset_row_z_z_product_wide = (int64_t)(int32_t)attachment_transform_node->world_rot_matrix.m22 * actor->attach_offset.z;
172
173 transformed_actor = actor;
174 transformed_actor->sub_pos.z = attachment_transform_node->world_position.z + (int32_t)(((uint64_t)offset_row_z_z_product_wide + (uint64_t)offset_row_z_x_product_wide + (uint64_t)offset_row_z_y_product_wide) >> PHYSICS_FIXED_FRACTION_BITS);
175 }
176
177 bool preserve_attachment_rotation = !(transformed_actor->attachment_options & ACTOR_ATTACHMENT_INHERIT_ROTATION);
178
179 transformed_actor->sub_pos = (struct Math_Vec3I32){
180 .x = transformed_actor->sub_pos.x - transformed_actor->position.x,
181 .y = transformed_actor->sub_pos.y - transformed_actor->position.y,
182 .z = transformed_actor->sub_pos.z - transformed_actor->position.z};
183
184 if (!preserve_attachment_rotation)
185 Math_MulMat3x3Q12(&transformed_actor->rot_mat, &transformed_actor->contact_basis, left_factor);
186}
187
188// Original pcdogs.exe: 0x43aa60
189// Detaches the previous parent and binds a new parent or attachment point, clearing the attachment offset and updating reference counts. A null attachment requests automatic selection, while the minus-one sentinel suppresses it.
190struct Scene_TransformNodePrefix *Actor_AttachToParent(struct Actor_State *child_actor, struct Actor_State *parent_actor, struct Scene_TransformNodePrefix *attach_point_or_auto_sentinel, uint32_t attachment_flags_and_face_selector)
191{
192 Actor_DetachFromParent(child_actor);
193
194 struct Scene_TransformNodePrefix *attachment_transform_node = attach_point_or_auto_sentinel;
195
196 child_actor->attachment_options = attachment_flags_and_face_selector;
197
198 if (!attachment_transform_node || (uintptr_t)attachment_transform_node == UINTPTR_MAX)
199 {
200 child_actor->attachment_transform_node = NULL;
201
202 if (!attachment_transform_node)
203
204 Actor_SelectNearestAttachPoint(parent_actor, child_actor);
205
206 attachment_transform_node = child_actor->attachment_transform_node;
207
208 if (attachment_transform_node)
209 {
210 struct Graphics_Render_SpriteNodeData *attach_point_table =
211 parent_actor->attach_point_table;
212 /* 43aade..43aafd: signed byte index, 20-byte entries, signed words. */
213 int32_t attach_index = (int8_t)attachment_transform_node->subtype_index;
214 const struct Actor_AttachmentSpriteNodeSlotView *attach_entry =
215 &((const struct Actor_AttachmentSpriteNodeSlotView *)attach_point_table)[attach_index];
216 int32_t selected_attachment_face = Math_GenerateRandom(attach_entry->random_face_count) + attach_entry->base_face_index;
217
218 child_actor->attachment_options |= selected_attachment_face * 2 + 2;
219 }
220 else
221 {
222 struct Scene_Node **render_node_slot_cursor = parent_actor->render_node_list;
223 struct Scene_TransformNodePrefix *parent_transform = (struct Scene_TransformNodePrefix *)parent_actor;
224 attachment_transform_node = (struct Scene_TransformNodePrefix *)*render_node_slot_cursor++;
225
226 while (attachment_transform_node)
227 {
228 if (attachment_transform_node->first_child_or_attachment != parent_transform)
229 {
230 attachment_transform_node = parent_transform;
231
232 break;
233 }
234
235 if (attachment_transform_node->node_type == SCENE_NODE_SUBMESH && !(attachment_transform_node->lifecycle_or_traversal_flags & (SCENE_NODE_DISABLED | SCENE_NODE_FORCE_REINITIALIZE)))
236 break;
237
238 attachment_transform_node = (struct Scene_TransformNodePrefix *)*render_node_slot_cursor++;
239 }
240
241 if (!attachment_transform_node)
242 attachment_transform_node = parent_transform;
243 }
244 }
245
246 int32_t behavior_flags = child_actor->behavior_flags;
247
248 child_actor->attach_offset = (struct Math_Vec3I32){
249 .z = 0,
250 .y = 0,
251 .x = 0};
252
253 child_actor->behavior_flags = behavior_flags | ACTOR_BEHAVIOR_AIRBORNE;
254 child_actor->attachment_transform_node = attachment_transform_node;
255 child_actor->parent_actor = parent_actor;
256
257 if (parent_actor->actor_type == ACTOR_OBJECT_RUNTIME)
258 parent_actor->attach_refcount += 1;
259
260 return attachment_transform_node;
261}
262
263// Original pcdogs.exe: 0x43ab50
264// Selects the nearest eligible attachment node within its signed range and stores it on the child actor.
265void Actor_SelectNearestAttachPoint(struct Actor_State *parent_actor, struct Actor_State *child_actor)
266{
267 struct Scene_Node **render_node_list = parent_actor->render_node_list;
268 struct Scene_Node *next_render_node_2 = (struct Scene_Node *)(uintptr_t)(*(uint32_t *)render_node_list);
269 struct Scene_Node *next_render_node_1 = next_render_node_2;
270 struct Scene_Node **render_node_cursor = &render_node_list[1];
271
272 if (!next_render_node_2)
273 return;
274
275 while (true)
276 {
277 if (!(next_render_node_2->traversal_flags & (SCENE_NODE_DISABLED | SCENE_NODE_FORCE_REINITIALIZE)) && next_render_node_2->node_type == SCENE_NODE_SUBMESH)
278 {
279 int32_t render_entry_index_for_type_6 = (int8_t)next_render_node_2->render_entry_index_for_type_6;
280
282 {
283 struct Graphics_Render_SpriteNodeData *attach_point_table =
284 parent_actor->attach_point_table;
285
286 if (attach_point_table[render_entry_index_for_type_6].offset.y > 0
287 /* Native43ABB7 MOVCL,[entry+2];43ABBA TESTCL uses signed low byte. */
288 && (int8_t)attach_point_table[render_entry_index_for_type_6].frame_index <= 0)
289 {
290 struct Scene_TransformNodePrefix *attachment_transform_node =
291 child_actor->attachment_transform_node;
292
293 if (attachment_transform_node)
294 {
295 int32_t x = child_actor->position.x;
296 struct Math_Vec3I32 existing_attachment_delta;
297
298 existing_attachment_delta.x =
299 x - attachment_transform_node->world_position.x;
300
301 int32_t y = child_actor->position.y;
302 int32_t z = child_actor->position.z;
303
304 existing_attachment_delta.y =
305 y - attachment_transform_node->world_position.y;
306
307 int32_t candidate_delta_x = x - next_render_node_2->world_pos.x;
308 int32_t candidate_position_z = next_render_node_2->world_pos.z;
309
310 existing_attachment_delta.z =
311 z - attachment_transform_node->world_position.z;
312
313 struct Math_Vec3I32 candidate_attachment_delta = (struct Math_Vec3I32){
314 .x = candidate_delta_x,
315 .z = z - candidate_position_z,
316 .y = y - next_render_node_2->world_pos.y};
317
318 int64_t candidate_x_squared_wide = (int64_t)candidate_attachment_delta.x * candidate_attachment_delta.x;
319 int64_t candidate_y_squared_wide = (int64_t)candidate_attachment_delta.y * candidate_attachment_delta.y;
320 int64_t candidate_z_squared_wide = (int64_t)candidate_attachment_delta.z * candidate_attachment_delta.z;
321 int64_t existing_x_squared_wide = (int64_t)existing_attachment_delta.x * existing_attachment_delta.x;
322 int64_t existing_y_squared_wide = (int64_t)existing_attachment_delta.y * existing_attachment_delta.y;
323 int64_t existing_z_squared_wide = (int64_t)existing_attachment_delta.z * existing_attachment_delta.z;
324
325 if (((int32_t)(((uint64_t)candidate_z_squared_wide + (uint64_t)candidate_x_squared_wide + (uint64_t)candidate_y_squared_wide) >> PHYSICS_FIXED_FRACTION_BITS)) < ((int32_t)(((uint64_t)existing_z_squared_wide + (uint64_t)existing_x_squared_wide + (uint64_t)existing_y_squared_wide) >> PHYSICS_FIXED_FRACTION_BITS)))
326 child_actor->attachment_transform_node = (struct Scene_TransformNodePrefix *)(next_render_node_1);
327 }
328 else
329 child_actor->attachment_transform_node = (struct Scene_TransformNodePrefix *)(next_render_node_2);
330 }
331 }
332 }
333
334 struct Scene_Node *next_render_node = (struct Scene_Node *)(uintptr_t)(*(uint32_t *)render_node_cursor);
335
336 next_render_node_1 = next_render_node;
337 render_node_cursor = &render_node_cursor[1];
338
339 if (!next_render_node)
340 break;
341
342 next_render_node_2 = next_render_node_1;
343 }
344}
345
346// Original pcdogs.exe: 0x43acb0
347// Releases a type-three parent's reference count and clears both parent and attachment links. The attachment link is cleared even when no parent exists.
349{
350 struct Actor_State *parent_actor = actor->parent_actor;
351
352 if (!parent_actor)
353 {
354 actor->attachment_transform_node = NULL;
355
356 return;
357 }
358
361
362 actor->parent_actor = NULL;
363 actor->attachment_transform_node = NULL;
364}
365
366// Original pcdogs.exe: 0x443360
367// Copies the attached actor's animation tick and applies endpoint clamping or wrapping according to movement flags. Wrapping uses the terminal tick as a divisor, so a zero terminal tick can trap.
369{
370 struct Actor_State *attached_actor = *(struct Actor_State **)&actor->velocity.y;
371
373 {
375
376 return;
377 }
378
379 int32_t vertical_position = attached_actor->anim_tick;
380
381 actor->anim_tick = vertical_position;
382
383 if (attached_actor->behavior_flags & ACTOR_ROOT_MOTION_WRAP)
384 return;
385
386 int32_t attachment_frame_limit = (uint16_t)(((const struct Scene_Type1RenderOwnerView *)actor)->animation_frame_count);
387
388 if (vertical_position < (attachment_frame_limit << 6) - PHYSICS_ANIMATION_FRAME_TICKS)
389 return;
390
391 int32_t behavior_flags = actor->behavior_flags;
392
394 {
395 actor->anim_tick = (attachment_frame_limit << 6) - PHYSICS_ANIMATION_FRAME_TICKS;
396
397 return;
398 }
399
401
402 actor->anim_tick = (int64_t)vertical_position % ((attachment_frame_limit << 6) - PHYSICS_ANIMATION_FRAME_TICKS);
403}
#define ACTOR_ROOT_MOTION_WRAP
Definition constants.h:23
#define ACTOR_BEHAVIOR_AIRBORNE
Definition constants.h:13
#define ACTOR_LIFECYCLE_DISABLED
Definition constants.h:39
#define ACTOR_BEHAVIOR_MOVING_LEFT
Definition constants.h:17
#define ACTOR_LIFECYCLE_DESTROYING
Definition constants.h:43
@ ACTOR_OBJECT_RUNTIME
Definition constants.h:143
#define ACTOR_ATTACHMENT_INHERIT_ROTATION
Definition constants.h:46
#define ACTOR_ROOT_MOTION_LOOP
Definition constants.h:22
void Actor_SetMovingRight(struct Actor_State *actor)
Definition movement.c:572
void Actor_ReleaseBindings(struct Player_ControllerRecordView *record)
Definition attachments.c:68
struct Scene_TransformNodePrefix * Actor_AttachToParent(struct Actor_State *child_actor, struct Actor_State *parent_actor, struct Scene_TransformNodePrefix *attach_point_or_auto_sentinel, uint32_t attachment_flags_and_face_selector)
void Actor_DetachFromParent(struct Actor_State *actor)
void Actor_SelectNearestAttachPoint(struct Actor_State *parent_actor, struct Actor_State *child_actor)
void Actor_UpdateAttachmentTransform(struct Actor_State *actor)
Definition attachments.c:86
void Actor_ReleaseAttachment(struct Actor_MovementRecordView *record)
Definition attachments.c:34
void Actor_FollowAttachedMovement(struct Actor_State *actor)
#define CAMERA_DEFINITION_ORBIT
Definition constants.h:11
#define CAMERA_DEFINITION_MODE_MASK
Definition constants.h:17
int32_t Component_GetCollisionCooldownFrames(struct Component_Definition const *definition)
Definition collision.c:364
void Math_MulMat3x3Q12(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *right_factor, struct Math_Matrix3x3I16 const *left_factor)
Definition matrices.c:11
uint32_t Math_GenerateRandom(uint32_t range)
#define pkg_resource_current_level_data
Definition globals.h:117
#define PHYSICS_ANIMATION_FRAME_TICKS
Definition constants.h:12
#define PHYSICS_POSITION_FRACTION_MASK
Definition constants.h:17
#define PHYSICS_FIXED_FRACTION_BITS
Definition constants.h:6
#define SCENE_NODE_RESET_REQUESTED
Definition constants.h:26
#define SCENE_NODE_FORCE_REINITIALIZE
Definition constants.h:32
#define SCENE_NODE_DISABLED
Definition constants.h:24
@ SCENE_NODE_SUBMESH
Definition constants.h:13
struct Component_CollisionRecord * collision_records
Definition types.h:325
struct Actor_State * attached_actors[0x2]
Definition types.h:326
struct Math_Vec3I32 velocity
Definition types.h:446
struct Math_Matrix3x3I16 contact_basis
Definition types.h:380
struct Scene_Node ** render_node_list
Definition types.h:440
struct Scene_TransformNodePrefix * attachment_transform_node
Definition types.h:379
uint8_t lifecycle_flags
Definition types.h:392
struct Mesh_RuntimeVertex * runtime_vertex_array
Definition types.h:397
uint8_t actor_type
Definition types.h:391
struct Mesh_Polygon * mesh_polygon_array
Definition types.h:396
uint8_t behavior_flags_high
Definition types.h:412
int32_t behavior_flags
Definition types.h:407
int32_t anim_tick
Definition types.h:427
struct Actor_State * parent_actor
Definition types.h:488
int16_t fade_timer
Definition types.h:438
struct Math_Vec3I32 sub_pos
Definition types.h:386
struct Math_Matrix3x3I16 rot_mat
Definition types.h:383
uint32_t attachment_options
Definition types.h:387
struct Math_Vec3I32 position
Definition types.h:385
struct Math_Vec3I32 attach_offset
Definition types.h:382
uint8_t attach_refcount
Definition types.h:436
struct Graphics_Render_SpriteNodeData * attach_point_table
Definition types.h:419
struct Component_Definition * definition
Definition types.h:43
Definition types.h:22
struct Math_Vec3I16 offset
Definition types.h:590
struct Pkg_CameraDef * cam_current
Definition types.h:42
int16_t current_entity_index
Definition types.h:43
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 z
Definition types.h:460
int16_t x
Definition types.h:458
int16_t y
Definition types.h:459
int32_t y
Definition types.h:471
int32_t x
Definition types.h:470
int32_t z
Definition types.h:472
uint16_t vert_idx[0x4]
Definition types.h:586
struct Math_Vec3I16 pos
Definition types.h:1115
uint8_t flags
Definition types.h:180
int16_t transition_speed
Definition types.h:181
uint8_t camera_type
Definition types.h:179
struct Actor_State * attached_actors[2]
Definition types.h:215
uint8_t traversal_flags
Definition types.h:130
uint8_t node_type
Definition types.h:129
struct Math_Vec3I32 world_pos
Definition types.h:120
char render_entry_index_for_type_6
Definition types.h:131
struct Math_Matrix3x3I16 local_rot_matrix
Definition types.h:257
struct Math_Matrix3x3I16 world_rot_matrix
Definition types.h:260
struct Math_Vec3I32 world_position
Definition types.h:262
uint8_t lifecycle_or_traversal_flags
Definition types.h:269
struct Scene_TransformNodePrefix * first_child_or_attachment
Definition types.h:256