3#include <box2d/box2d.h>
15 std::optional<std::reference_wrapper<GameObject>>
game_object{std::nullopt};
Represents a point in 2D space.
Definition point.h:6
Structure representing the result of a raycast in the physics world.
Definition collider_ray_result.h:13
float distance
Definition collider_ray_result.h:19
std::optional< std::reference_wrapper< GameObject > > game_object
Definition collider_ray_result.h:15
Point point
Definition collider_ray_result.h:20
bool is_valid
Definition collider_ray_result.h:17
float fraction
Definition collider_ray_result.h:16
Point normal
Definition collider_ray_result.h:21
b2ShapeId shape_id
Definition collider_ray_result.h:14