Go to the source code of this file.
|
struct | ray |
| Represents a line which starts at an origin and proceed infinitely in the given direction. Typically used for hit tests, picking, etc. More...
|
|
struct | raycast_hit |
|
struct | raycast_result |
|
|
KAPI ray | ray_create (vec3 position, vec3 direction) |
|
KAPI ray | ray_from_screen (vec2 screen_pos, rect_2d viewport_rect, vec3 origin, mat4 view, mat4 projection) |
|
KAPI b8 | raycast_aabb (extents_3d bb_extents, const ray *r, vec3 *out_point) |
|
KAPI b8 | raycast_oriented_extents (extents_3d bb_extents, mat4 model, const ray *r, f32 *out_dist) |
|
KAPI b8 | raycast_plane_3d (const ray *r, const plane_3d *p, vec3 *out_point, f32 *out_distance) |
|
KAPI b8 | raycast_disc_3d (const ray *r, vec3 center, vec3 normal, f32 outer_radius, f32 inner_radius, vec3 *out_point, f32 *out_distance) |
|
◆ ray
Represents a line which starts at an origin and proceed infinitely in the given direction. Typically used for hit tests, picking, etc.
◆ raycast_hit
◆ raycast_hit_type
◆ raycast_result
◆ raycast_hit_type
Enumerator |
---|
RAYCAST_HIT_TYPE_OBB | |
RAYCAST_HIT_TYPE_SURFACE | |
◆ ray_create()
◆ ray_from_screen()
◆ raycast_aabb()
◆ raycast_disc_3d()
◆ raycast_oriented_extents()
◆ raycast_plane_3d()