3#include <box2d/box2d.h>
30 const b2Vec2& translation);
42 std::vector<ColliderRayResult>
raycast_all(
const b2Vec2& origin,
43 const b2Vec2& translation,
44 b2QueryFilter filter = {});
57 const b2Vec2& translation,
58 uint16_t category_mask);
Class responsible for raycasting in the physics world.
Definition physics_raycaster.h:16
PhysicsRaycaster(b2WorldId world_id)
ColliderRayResult raycast_closest(const b2Vec2 &origin, const b2Vec2 &translation)
Closest hit.
std::vector< ColliderRayResult > raycast_filtered(const b2Vec2 &origin, const b2Vec2 &translation, uint16_t category_mask)
Filtered hits by category mask.
std::vector< ColliderRayResult > raycast_all(const b2Vec2 &origin, const b2Vec2 &translation, b2QueryFilter filter={})
All hits.
ColliderRayResult raycast_segment(const b2Vec2 &start, const b2Vec2 &end)
Raycast segment.
Structure representing the result of a raycast in the physics world.
Definition collider_ray_result.h:13