This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
super_mario_64:structs [2019/10/27 00:45] jesusyoshi54 [Object] |
super_mario_64:structs [2019/12/20 19:47] (current) jesusyoshi54 [Object] |
||
---|---|---|---|
Line 21: | Line 21: | ||
| 0x20 | float | normal_y | | | 0x20 | float | normal_y | | ||
| 0x24 | float | normal_z | | | 0x24 | float | normal_z | | ||
- | | 0x28 | float | negdot | | + | | 0x28 | float | origin offset | |
- | | 0x2C | u32 | unused? | | + | | 0x2C | u32 | *object | |
===== Controller ===== | ===== Controller ===== | ||
Line 68: | Line 68: | ||
| 0x20 | u32* | object_spawn_info_ptr (objects linked list head)| | | 0x20 | u32* | object_spawn_info_ptr (objects linked list head)| | ||
| 0x24 | u32* | LevelCameraPointer (generated at run-time) | | | 0x24 | u32* | LevelCameraPointer (generated at run-time) | | ||
- | | 0x28 | u32 | | | + | | 0x28 | u32 | unused | |
| 0x2C | u32* | Whirlpool_1_ptr | | | 0x2C | u32* | Whirlpool_1_ptr | | ||
| 0x30 | u32* | Whirlpool_2_ptr | | | 0x30 | u32* | Whirlpool_2_ptr | | ||
| 0x34 | u8 | Level start dialog number (see: [[super_mario_64:level_commands#show_dialog|Level command 0x30]]) | | | 0x34 | u8 | Level start dialog number (see: [[super_mario_64:level_commands#show_dialog|Level command 0x30]]) | | ||
- | | 0x35 | u8 | Always 0xFF? | | + | | 0x35 | u8 | Level start dialog 2 (unused?) | |
| 0x36 | s16 | music_param | | | 0x36 | s16 | music_param | | ||
| 0x38 | s16 | music_param2 (title screen,etc) | | | 0x38 | s16 | music_param2 (title screen,etc) | | ||
- | | 0x3A | u16 | unused (padding) | | ||
===== Object ===== | ===== Object ===== | ||
Line 103: | Line 102: | ||
| 0x44 | u16 | anim_current_frame_copy | | | 0x44 | u16 | anim_current_frame_copy | | ||
| 0x46 | u16 | animation_increment | | | 0x46 | u16 | animation_increment | | ||
- | | 0x48 | u32 | | | + | | 0x48 | u32 | animation accel | |
- | | 0x4C | u32 | | | + | | 0x4C | struct | Spawn Info | |
| 0x50 | struct matrix* | transform_matrix_ptr (4x4 affine) | | | 0x50 | struct matrix* | transform_matrix_ptr (4x4 affine) | | ||
- | | 0x54 | float | | | + | | 0x54 | float | Cam to Obj X | |
- | | 0x58 | float | | | + | | 0x58 | float | Cam to Obj Y | |
- | | 0x5C | float | | | + | | 0x5C | float | Cam to Obj Z | |
| 0x60 | struct object* | next_object_ptr | | | 0x60 | struct object* | next_object_ptr | | ||
| 0x64 | struct object* | prev_object_ptr | | | 0x64 | struct object* | prev_object_ptr | | ||
| 0x68 | struct object* | parent_object_ptr | | | 0x68 | struct object* | parent_object_ptr | | ||
- | | 0x6C | u32 | | | + | | 0x6C | struct object* | prev object | |
- | | 0x70 | u32 | | | + | | 0x70 | u32 | Collided Obj Interact Type | |
- | | 0x74 | u16 | active (0x0000 = inactive, 0x0101 = active) | | + | | 0x74 | u16 | active (0x0000 = inactive, 0x0101 = active, 0x20 move in time stop) | |
| 0x76 | u16 | num_collided_obj | | | 0x76 | u16 | num_collided_obj | | ||
| 0x78 | struct object* | collided_obj_ptr1 (according to YE, pointer to object collided with) | | | 0x78 | struct object* | collided_obj_ptr1 (according to YE, pointer to object collided with) | | ||
Line 156: | Line 155: | ||
| 0x10C | u32 | | | | 0x10C | u32 | | | ||
| 0x110 | u32 | | | | 0x110 | u32 | | | ||
- | | 0x114 | s32 | Moves Mario in Z direction while ontop of the object | | + | | 0x114 | s32 | Moves Mario's pitch while ontop of the object | |
| 0x118 | s32 | Spins Mario around while ontop of the object | | | 0x118 | s32 | Spins Mario around while ontop of the object | | ||
- | | 0x11C | s32 | Moves Mario in X direction while ontop of the object | | + | | 0x11C | s32 | Moves Mario's roll while ontop of the object | |
| 0x120 | u32 | animation_list_ptr (set by 0x27 26 behavior command)| | | 0x120 | u32 | animation_list_ptr (set by 0x27 26 behavior command)| | ||
| 0x124 | u32 | Held State | | | 0x124 | u32 | Held State | | ||
Line 202: | Line 201: | ||
| 0x1C0 | u32 | Floor | | | 0x1C0 | u32 | Floor | | ||
| 0x1C4 | s32 | Death Sound | | | 0x1C4 | s32 | Death Sound | | ||
- | | 0x1C8 | u32 | | | + | | 0x1C8 | u32 | Unused | |
- | | 0x1CC | u32 | script_entry_ptr | | + | | 0x1CC | u32 | Behav script_entry_ptr | |
| 0x1D0 | u32 | stack_index | | | 0x1D0 | u32 | stack_index | | ||
- | | 0x1D4 | u32 | stack | | + | | 0x1D4 | u32 | stack [8] | |
- | | 0x1D8 | u32 | | | + | | 0x1F4 | s16 | unk14 | |
- | | 0x1DC | u32 | | | + | | 0x1F6 | s16 | respawn info type | |
- | | 0x1E0 | u32 | | | + | |
- | | 0x1E4 | u32 | | | + | |
- | | 0x1E8 | u32 | | | + | |
- | | 0x1EC | u32 | | | + | |
- | | 0x1F0 | u32 | | | + | |
- | | 0x1F4 | u16 | | | + | |
- | | 0x1F6 | u16 | | | + | |
| 0x1F8 | float | col_cylinder_radius | | | 0x1F8 | float | col_cylinder_radius | | ||
| 0x1FC | float | col_cylinder_height | | | 0x1FC | float | col_cylinder_height | | ||
- | | 0x200 | float | | | + | | 0x200 | float | hurtbox radius | |
- | | 0x204 | float | | | + | | 0x204 | float | hurtbox height | |
- | | 0x208 | float | col_cylinder_vertical_offset | | + | | 0x208 | float | col_cylinder_downward_offset | |
| 0x20C | u32 | script_start_ptr (Behavior ID) | | | 0x20C | u32 | script_start_ptr (Behavior ID) | | ||
- | | 0x210 | u32 | | | + | | 0x210 | u32 | unused | |
- | | 0x214 | u32 | collide_obj_ptr | | + | | 0x214 | struct | *collide_obj_ptr(platform) | |
| 0x218 | u32 | collision_ptr | | | 0x218 | u32 | collision_ptr | | ||
- | | 0x21C | float | matrix[0][0] (uknown matrix) | | + | | 0x21C | float | matrix[0][0] (transform matrix) | |
| 0x220 | float | matrix[0][1] | | | 0x220 | float | matrix[0][1] | | ||
| 0x224 | float | matrix[0][2] | | | 0x224 | float | matrix[0][2] | | ||
Line 240: | Line 232: | ||
| 0x254 | float | matrix[3][2] | | | 0x254 | float | matrix[3][2] | | ||
| 0x258 | float | matrix[3][3] | | | 0x258 | float | matrix[3][3] | | ||
- | | 0x25C | u32 | behav_param_copy_ptr | | + | | 0x25C | u32 | respawn info (behav_param_copy_ptr) | |
===== Mario ===== | ===== Mario ===== | ||
Line 255: | Line 247: | ||
| 0x1A | u16 | action variable (different uses based on Mario->0x0C) | | | 0x1A | u16 | action variable (different uses based on Mario->0x0C) | | ||
| 0x1C | u16 | Front tilt (just visuals?) | | | 0x1C | u16 | Front tilt (just visuals?) | | ||
- | | 0x1E | u32 | squish_timer | | + | | 0x1E | u16 | squish_timer | |
| 0x20 | float | analogTilt | | | 0x20 | float | analogTilt | | ||
| 0x24 | s16 | Yaw (Facing) rotation | | | 0x24 | s16 | Yaw (Facing) rotation | | ||
Line 309: | Line 301: | ||
| 0xBA | u16 | unused? | | | 0xBA | u16 | unused? | | ||
| 0xBC | float | highest y_pos achieved while gaining height | | | 0xBC | float | highest y_pos achieved while gaining height | | ||
- | | 0xC0 | float | y_pos offset (usually always 0.0f, but can be modified during cut-scenes) | | + | | 0xC0 | float | y_pos offset (modified while in quicksand or cutscenes, otherwise 0.0f) | |
===== References ===== | ===== References ===== |