![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Raycast hit information. More...
#include <RayCollision.hpp>
Public Member Functions | |
| constexpr | RayCollision (bool hit, float distance, ::Vector3 point, ::Vector3 normal) |
| RayCollision (const ::Ray &ray, ::Vector3 center, float radius) | |
| Get collision info between ray and sphere. | |
| RayCollision (const ::Ray &ray, ::Vector3 p1, ::Vector3 p2, ::Vector3 p3) | |
| Get collision info between ray and triangle. | |
| RayCollision (const ::Ray &ray, ::Vector3 p1, ::Vector3 p2, ::Vector3 p3, ::Vector3 p4) | |
| Get collision info between ray and quad. | |
| RayCollision (const ::Ray &ray, const ::BoundingBox &box) | |
| Get collision info between ray and bounding box. | |
| RayCollision (const ::Ray &ray, const ::Mesh &mesh, const ::Matrix &transform) | |
| Get collision info between ray and mesh. | |
| RayCollision (const ::RayCollision &ray) | |
| float | GetDistance () const |
| Retrieves the distance value for the object. | |
| bool | GetHit () const |
| Retrieves the hit value for the object. | |
| ::Vector3 | GetNormal () const |
| Retrieves the normal value for the object. | |
| ::Vector3 | GetPosition () const |
| Retrieves the point value for the object. | |
| RayCollision & | operator= (const ::RayCollision &ray) |
| void | SetDistance (float value) |
| Sets the distance value for the object. | |
| void | SetHit (bool value) |
| Sets the hit value for the object. | |
| void | SetNormal (::Vector3 value) |
| Sets the normal value for the object. | |
| void | SetPosition (::Vector3 value) |
| Sets the point value for the object. | |
Protected Member Functions | |
| void | set (const ::RayCollision &ray) |
Raycast hit information.
Definition at line 11 of file RayCollision.hpp.
|
inline |
Definition at line 13 of file RayCollision.hpp.
|
inlineconstexpr |
Definition at line 15 of file RayCollision.hpp.
|
inline |
Get collision info between ray and bounding box.
Definition at line 23 of file RayCollision.hpp.
|
inline |
Get collision info between ray and mesh.
Definition at line 31 of file RayCollision.hpp.
|
inline |
Get collision info between ray and quad.
Definition at line 39 of file RayCollision.hpp.
|
inline |
Get collision info between ray and sphere.
Definition at line 47 of file RayCollision.hpp.
|
inline |
Get collision info between ray and triangle.
Definition at line 55 of file RayCollision.hpp.
|
inline |
Retrieves the distance value for the object.
Definition at line 66 of file RayCollision.hpp.
|
inline |
Retrieves the hit value for the object.
Definition at line 65 of file RayCollision.hpp.
|
inline |
Retrieves the normal value for the object.
Definition at line 68 of file RayCollision.hpp.
|
inline |
Retrieves the point value for the object.
Definition at line 67 of file RayCollision.hpp.
|
inline |
Definition at line 60 of file RayCollision.hpp.
|
inlineprotected |
Definition at line 70 of file RayCollision.hpp.
|
inline |
Sets the distance value for the object.
| value | The value of which to set distance to. |
Definition at line 66 of file RayCollision.hpp.
|
inline |
Sets the hit value for the object.
| value | The value of which to set hit to. |
Definition at line 65 of file RayCollision.hpp.
|
inline |
Sets the normal value for the object.
| value | The value of which to set normal to. |
Definition at line 68 of file RayCollision.hpp.
|
inline |
Sets the point value for the object.
| value | The value of which to set point to. |
Definition at line 67 of file RayCollision.hpp.