|
Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
|
Structure representing the result of a raycast in the physics world. More...
#include <collider_ray_result.h>
Public Attributes | |
| b2ShapeId | shape_id {} |
| std::optional< std::reference_wrapper< GameObject > > | game_object {std::nullopt} |
| float | fraction {0.0f} |
| bool | is_valid {false} |
| float | distance {0.0f} |
| Point | point {0.0f, 0.0f} |
| Point | normal {0.0f, 0.0f} |
Structure representing the result of a raycast in the physics world.
This struct encapsulates the distance, hit point, normal vector, and validity of a raycast operation.
| float ColliderRayResult::distance {0.0f} |
| float ColliderRayResult::fraction {0.0f} |
| std::optional<std::reference_wrapper<GameObject> > ColliderRayResult::game_object {std::nullopt} |
| bool ColliderRayResult::is_valid {false} |
| Point ColliderRayResult::normal {0.0f, 0.0f} |
| Point ColliderRayResult::point {0.0f, 0.0f} |
| b2ShapeId ColliderRayResult::shape_id {} |