papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
cam_math.c File Reference

Functions

CameraControlSettingstest_ray_zone (f32 posX, f32 posY, f32 posZ, Collider **zone)
 
s32 calculate_segment_intersection (f32 A1x, f32 A1z, f32 A2x, f32 A2z, f32 B1x, f32 B1z, f32 B2x, f32 B2z, f32 *interX, f32 *interZ, f32 *squared_dist)
 
s32 calculate_line_segment_intersection (f32 A1x, f32 A1z, f32 A2x, f32 A2z, f32 B1x, f32 B1z, f32 B2x, f32 B2z, f32 *interX, f32 *interZ, f32 *squared_dist)
 
s32 func_800328A4 (CameraControlSettings *camSettings, f32 Px, f32 Pz)
 
void update_camera_lead_amount (Camera *camera, f32 candidateLeadAmount)
 
void apply_constraints_to_lead_amount (Camera *camera)
 
void create_camera_leadplayer_matrix (Camera *camera)
 
void func_800334E8 (void)
 

Variables

s32 gCurrentCameraID = CAM_DEFAULT
 

Function Documentation

◆ apply_constraints_to_lead_amount()

void apply_constraints_to_lead_amount ( Camera * camera)

◆ calculate_line_segment_intersection()

s32 calculate_line_segment_intersection ( f32 A1x,
f32 A1z,
f32 A2x,
f32 A2z,
f32 B1x,
f32 B1z,
f32 B2x,
f32 B2z,
f32 * interX,
f32 * interZ,
f32 * squared_dist )

◆ calculate_segment_intersection()

s32 calculate_segment_intersection ( f32 A1x,
f32 A1z,
f32 A2x,
f32 A2z,
f32 B1x,
f32 B1z,
f32 B2x,
f32 B2z,
f32 * interX,
f32 * interZ,
f32 * squared_dist )

◆ create_camera_leadplayer_matrix()

void create_camera_leadplayer_matrix ( Camera * camera)

Referenced by update_cameras().

◆ func_800328A4()

s32 func_800328A4 ( CameraControlSettings * camSettings,
f32 Px,
f32 Pz )

◆ func_800334E8()

void func_800334E8 ( void )

◆ test_ray_zone()

CameraControlSettings * test_ray_zone ( f32 posX,
f32 posY,
f32 posZ,
Collider ** zone )

◆ update_camera_lead_amount()

void update_camera_lead_amount ( Camera * camera,
f32 candidateLeadAmount )

Variable Documentation

◆ gCurrentCameraID

s32 gCurrentCameraID = CAM_DEFAULT

Referenced by _render_transition_stencil(), _show_message(), action_hammer_end_swing(), action_hammer_test_swing_collision(), action_update_parasol(), action_update_spin(), action_update_tornado_jump(), appendGfx_background_texture(), appendGfx_darkness_stencil(), appendGfx_interact_prompt(), appendGfx_ispy_icon(), appendGfx_pulse_stone_icon(), appendGfx_shading_palette(), appendGfx_speech_bubble(), aura_appendGfx(), balloon_appendGfx(), big_smoke_puff_appendGfx(), big_snowflakes_appendGfx(), blast_appendGfx(), bombette_breaking_appendGfx(), breaking_junk_appendGfx(), btl_restore_world_cameras(), btl_state_draw_end_battle(), btl_state_update_normal_start(), can_dismount(), card_worker_render(), check_conversation_trigger(), cloud_puff_appendGfx(), cloud_trail_appendGfx(), cold_breath_appendGfx(), collision_main_above(), collision_main_lateral(), confetti_appendGfx(), create_shading_palette(), damage_indicator_render_impl(), damage_stars_appendGfx(), damage_stars_main(), debuff_appendGfx(), draw_all_status_icons(), draw_encounters_pre_battle(), draw_shop_items(), drop_leaves_appendGfx(), dust_appendGfx(), effect_3D_appendGfx(), effect_46_appendGfx(), effect_63_appendGfx(), effect_75_appendGfx(), effect_75_render(), effect_86_appendGfx(), embers_appendGfx(), emote_appendGfx(), ending_decals_appendGfx(), energy_in_out_appendGfx(), energy_orb_wave_appendGfx(), entity_BlueWarpPipe_enter_pipe_init(), explosion_appendGfx(), falling_leaves_appendGfx(), fire_breath_appendGfx(), fire_flower_appendGfx(), firework_rocket_appendGfx(), flame_appendGfx(), flame_render(), flashing_box_shockwave_appendGfx(), floating_cloud_puff_appendGfx(), fright_jar_appendGfx(), func_800E4AD8(), func_800E4B40(), func_80241610_97F0E0(), func_80241610_990DF0(), func_80241610_993D40(), func_E0020000(), func_E005E334(), func_E0080448(), func_E0082580(), func_E00863B4(), func_E008A000(), func_E008A290(), func_E0090444(), func_E00AC2A4(), func_E0112330(), func_E01166E8(), func_E011A700(), gather_energy_pink_appendGfx(), gather_energy_pink_update(), gather_magic_appendGfx(), GetCardOrientation(), gfx_build_crystal_ball_pre(), gfx_build_inside_crystal_ball(), gfx_draw_background(), got_item_outline_appendGfx(), green_impact_appendGfx(), hieroglyphs_appendGfx(), huff_puff_breath_appendGfx(), ice_pillar_appendGfx(), ice_shard_appendGfx(), imgfx_appendGfx_mesh(), interact_inspect_setup(), interact_speech_setup(), is_model_center_visible(), is_point_visible(), landing_dust_appendGfx(), lens_flare_appendGfx(), lightning_appendGfx(), load_map_by_IDs(), misc_particles_appendGfx(), misc_particles_update(), moving_cloud_appendGfx(), music_note_appendGfx(), offset_player_from_camera(), partner_do_player_collision(), partner_get_out(), peach_disguise_check_overlaps(), peach_star_beam_appendGfx(), phys_check_interactable_collision(), pink_sparkles_appendGfx(), PiranhaPlantAI_10(), player_get_side_angle(), player_raycast_below_cam_relative(), player_update_sprite(), quizmo_assistant_appendGfx(), quizmo_audience_appendGfx(), quizmo_stage_appendGfx(), radial_shimmer_appendGfx(), radial_shimmer_update(), radiating_energy_orb_appendGfx(), red_impact_appendGfx(), render_effects_UI(), render_models(), ring_blast_appendGfx(), rising_bubble_appendGfx(), set_npc_yaw(), set_screen_overlay_center_worldpos(), sfx_compute_spatialized_sound_params_full(), sfx_compute_spatialized_sound_params_ignore_depth(), sfx_compute_spatialized_sound_params_with_depth(), shape_spell_appendGfx(), shattering_stones_appendGfx(), shiny_flare_appendGfx(), shockwave_appendGfx(), sleep_bubble_appendGfx(), small_gold_sparkle_appendGfx(), smoke_burst_appendGfx(), smoke_impact_appendGfx(), smoke_ring_appendGfx(), snaking_static_appendGfx(), snowfall_appendGfx(), snowfall_update(), snowflake_appendGfx(), sparkles_appendGfx(), spawn_drops(), spiky_white_aura_appendGfx(), spiky_white_aura_main(), star_appendGfx(), star_main(), star_outline_appendGfx(), star_spirits_energy_appendGfx(), stars_burst_appendGfx(), stars_shimmer_appendGfx(), stars_spread_appendGfx(), state_init_file_select(), state_init_language_select(), state_init_logos(), state_init_title_screen(), static_status_appendGfx(), steam_burst_appendGfx(), stop_watch_appendGfx(), sun_appendGfx(), sweat_appendGfx(), sweat_main(), sync_player_position(), test_item_player_collision(), throw_spiny_appendGfx(), thunderbolt_ring_appendGfx(), tubba_heart_attack_appendGfx(), underwater_appendGfx(), UnkModelFunc001(), update_encounters_neutral(), update_entities(), update_player_shadow(), update_riding_physics(), update_shadows(), walking_dust_appendGfx(), water_fountain_appendGfx(), water_splash_appendGfx(), waterfall_appendGfx(), windy_leaves_appendGfx(), and worker_draw_story_graphics().