Go to the source code of this file.
Data Structures | |
struct | HitFile |
struct | ColliderBackupEntry |
struct | HitFileHeader |
struct | HitAssetCollider |
struct HitFileHeader |
struct HitAssetCollider |
s32 collision_heap_create | ( | void | ) |
Definition at line 50 of file heap.c.
Referenced by initialize_collision().
void * collision_heap_malloc | ( | s32 | size | ) |
Definition at line 57 of file heap.c.
Referenced by load_hit_data(), and parent_collider_to_model().
Definition at line 65 of file heap.c.
Referenced by parent_collider_to_model().
Definition at line 186 of file collision.c.
Referenced by load_battle_hit_asset(), and load_map_hit_asset().
Definition at line 363 of file collision.c.
Referenced by parent_collider_to_model().
Definition at line 378 of file collision.c.
Referenced by parent_collider_to_model().
Definition at line 80 of file collision.c.
Referenced by state_step_battle(), and state_step_pause().
Definition at line 105 of file collision.c.
Referenced by state_step_end_battle(), and state_step_unpause().
Definition at line 108 of file collision.c.
Definition at line 111 of file collision.c.
Referenced by load_map_by_IDs(), state_step_demo(), state_step_end_battle(), state_step_intro(), state_step_startup(), and state_step_unpause().
Definition at line 117 of file collision.c.
Referenced by load_map_by_IDs(), and restore_map_collision_data().
Definition at line 135 of file collision.c.
Referenced by state_step_end_battle(), and state_step_unpause().
Definition at line 166 of file collision.c.
Referenced by btl_state_update_normal_start().
Definition at line 320 of file collision.c.
Referenced by restore_map_collision_data().
Definition at line 391 of file collision.c.
Referenced by restore_map_collision_data().
s32 get_collider_flags | ( | s32 | colliderID | ) |
Definition at line 481 of file collision.c.
Referenced by action_update_hit_fire(), action_update_knockback(), action_update_sliding(), action_update_spin_jump(), action_update_step_down(), action_update_tornado_jump(), can_dismount(), check_input_jump(), func_80262130(), npc_surface_spawn_fx(), partner_get_out(), partner_walking_follow_player(), phys_adjust_cam_on_landing(), phys_main_collision_below(), player_handle_floor_collider_type(), player_surface_spawn_fx(), try_player_footstep_sounds(), update_current_floor(), update_riding_physics(), and update_riding_physics().
Definition at line 489 of file collision.c.
Definition at line 497 of file collision.c.
s32 test_ray_triangle_general | ( | ColliderTriangle * | triangle, |
Vec3f * | vertices ) |
Definition at line 505 of file collision.c.
Referenced by test_ray_colliders(), and test_ray_entities().
s32 test_ray_triangle_down | ( | ColliderTriangle * | triangle, |
Vec3f * | vertices ) |
Definition at line 602 of file collision.c.
Referenced by test_ray_colliders(), and test_ray_zones().
s32 test_ray_triangle_horizontal | ( | ColliderTriangle * | triangle, |
Vec3f * | vertices ) |
Definition at line 675 of file collision.c.
Referenced by test_ray_collider_horizontal(), and test_ray_colliders().
s32 test_ray_colliders | ( | s32 | ignoreFlags, |
f32 | startX, | ||
f32 | startY, | ||
f32 | startZ, | ||
f32 | dirX, | ||
f32 | dirY, | ||
f32 | dirZ, | ||
f32 * | hitX, | ||
f32 * | hitY, | ||
f32 * | hitZ, | ||
f32 * | hitDepth, | ||
f32 * | hitNx, | ||
f32 * | hitNy, | ||
f32 * | hitNz ) |
Definition at line 768 of file collision.c.
Referenced by entity_raycast_down(), npc_raycast_down(), npc_raycast_general(), npc_raycast_up(), npc_raycast_up_corner(), player_raycast_down(), player_raycast_general(), player_raycast_up_corner(), and test_ray_to_wall_center().
s32 test_ray_zones | ( | f32 | startX, |
f32 | startY, | ||
f32 | startZ, | ||
f32 | dirX, | ||
f32 | dirY, | ||
f32 | dirZ, | ||
f32 * | hitX, | ||
f32 * | hitY, | ||
f32 * | hitZ, | ||
f32 * | hitDepth, | ||
f32 * | hitNx, | ||
f32 * | hitNy, | ||
f32 * | hitNz ) |
Definition at line 866 of file collision.c.
Referenced by test_ray_zone(), and test_ray_zone_aabb().
f32 test_ray_collider_horizontal | ( | s32 | ignoreFlags, |
s32 | colliderID, | ||
f32 | x, | ||
f32 | y, | ||
f32 | z, | ||
f32 | length, | ||
f32 | yaw ) |
Definition at line 915 of file collision.c.
s32 test_ray_entities | ( | f32 | startX, |
f32 | startY, | ||
f32 | startZ, | ||
f32 | dirX, | ||
f32 | dirY, | ||
f32 | dirZ, | ||
f32 * | hitX, | ||
f32 * | hitY, | ||
f32 * | hitZ, | ||
f32 * | hitDepth, | ||
f32 * | hitNx, | ||
f32 * | hitNy, | ||
f32 * | hitNz ) |
Test a general ray from a given starting position and direction against all entities.
If one is hit, returns the position and normal of the hit and the length along the ray on the output params. All output params are invalid when a value of NO_COLLIDER
is returned.
startX | origin x position of the ray | |
startY | origin y position of the ray | |
startZ | origin z position of the ray | |
dirX | normalized x direction of the ray | |
dirY | normalized y direction of the ray | |
dirZ | normalized z direction of the ray | |
[out] | hitX | normalized x position of the hit |
[out] | hitY | normalized y position of the hit |
[out] | hitZ | normalized z position of the hit |
[in,out] | hitDepth | as input, maximum length of the ray; as output, distance along the ray of the hit |
[out] | hitNx | x normal direction of the hit |
[out] | hitNy | y normal direction of the hit |
[out] | hitNz | z normal direction of the hit |
NO_COLLIDER
is none is hit Definition at line 947 of file collision.c.
Referenced by entity_raycast_down(), npc_raycast_down(), npc_raycast_general(), npc_raycast_up(), npc_raycast_up_corner(), player_raycast_down(), player_raycast_general(), and player_raycast_up_corner().
CollisionData gCollisionData |
Definition at line 35 of file collision.c.
Referenced by backup_map_collision_data(), get_collider_center(), get_collider_flags(), get_flat_collider_normal(), initialize_collision(), load_battle_hit_asset(), load_hit_data(), modify_collider_family_flags(), parent_collider_to_model(), restore_map_collision_data(), test_ray_collider_horizontal(), test_ray_colliders(), and update_collider_transform().
CollisionData gZoneCollisionData |
Definition at line 36 of file collision.c.
Referenced by backup_map_collision_data(), initialize_collision(), load_hit_data(), restore_map_collision_data(), set_zone_enabled(), test_ray_zone(), test_ray_zone_aabb(), and test_ray_zones().
Definition at line 38 of file collision.c.
Referenced by test_ray_collider_horizontal(), test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 39 of file collision.c.
Referenced by test_ray_collider_horizontal(), test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 40 of file collision.c.
Referenced by test_ray_collider_horizontal(), test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 41 of file collision.c.
Referenced by test_ray_collider_horizontal(), test_ray_colliders(), test_ray_entities(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 42 of file collision.c.
Referenced by test_ray_collider_horizontal(), test_ray_colliders(), test_ray_entities(), test_ray_triangle_general(), and test_ray_zones().
Definition at line 43 of file collision.c.
Referenced by test_ray_collider_horizontal(), test_ray_colliders(), test_ray_entities(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 44 of file collision.c.
Referenced by test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 45 of file collision.c.
Referenced by test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 46 of file collision.c.
Referenced by test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 47 of file collision.c.
Referenced by test_ray_collider_horizontal(), test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 48 of file collision.c.
Referenced by test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 49 of file collision.c.
Referenced by test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
Definition at line 50 of file collision.c.
Referenced by test_ray_colliders(), test_ray_entities(), test_ray_triangle_down(), test_ray_triangle_general(), test_ray_triangle_horizontal(), and test_ray_zones().
BSS ColliderBackupEntry* gCollisionDataBackup |
Definition at line 51 of file collision.c.
Referenced by backup_map_collision_data(), and restore_map_collision_data().
BSS ColliderBackupEntry* gCollisionDataZoneBackup |
Definition at line 52 of file collision.c.
Referenced by backup_map_collision_data(), and restore_map_collision_data().
Vec3s gEntityColliderFaces[] |
Definition at line 54 of file collision.c.
Referenced by test_ray_entities().
Vec3f gEntityColliderNormals[] |
Definition at line 63 of file collision.c.
Referenced by test_ray_entities().