![]() |
Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
|
#include <definitions.hpp>
Public Member Functions | |
| RaycastResult () | |
Public Attributes | |
| PhysicsBody * | physicsBody |
| Vector2 | normal = {0.0f, 0.0f} |
| Vector2 | point = {0.0f, 0.0f} |
| float | fraction = 0.0f |
| bool | hit = false |
RaycastResult defines the result of a Raycast.
It has properties such as physicsBody which dictates the PhysicsBody the raycast hit, point which dictates the point of the intersection and hit which dictates if the raycast actually hit anything.
|
inline |
| float RaycastResult::fraction = 0.0f |
| bool RaycastResult::hit = false |
| Vector2 RaycastResult::normal = {0.0f, 0.0f} |
| PhysicsBody* RaycastResult::physicsBody |
| Vector2 RaycastResult::point = {0.0f, 0.0f} |