![]() |
Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
|
#include <definitions.hpp>
Public Member Functions | |
| Raycast (float maxDistance=500.0f) | |
| RaycastResult | calculate () |
| template<class Archive > | |
| void | serialize (Archive &ar) |
Public Attributes | |
| Transform | transform |
| float | maxDistance = 500.0f |
To use a raycast, you must create a Transform and set its rotation/position. You can also define the maximum distance of the Raycast.
Example usage:
|
inline |
| RaycastResult Raycast::calculate | ( | ) |
|
inline |
| float Raycast::maxDistance = 500.0f |
| Transform Raycast::transform |