Raycast hit information.
More...
#include <RayCollision.hpp>
|
| RayCollision (bool hit, float distance, ::Vector3 point, ::Vector3 normal) |
|
| RayCollision (const ::Ray &ray, ::Vector3 center, float radius) |
| Get collision info between ray and sphere. More...
|
|
| RayCollision (const ::Ray &ray, ::Vector3 p1, ::Vector3 p2, ::Vector3 p3) |
| Get collision info between ray and triangle. More...
|
|
| RayCollision (const ::Ray &ray, ::Vector3 p1, ::Vector3 p2, ::Vector3 p3, ::Vector3 p4) |
| Get collision info between ray and quad. More...
|
|
| RayCollision (const ::Ray &ray, const ::BoundingBox &box) |
| Get collision info between ray and bounding box. More...
|
|
| RayCollision (const ::Ray &ray, const ::Mesh &mesh, const ::Matrix &transform) |
| Get collision info between ray and mesh. More...
|
|
| RayCollision (const ::RayCollision &ray) |
|
float | GetDistance () const |
| Retrieves the distance value for the object. More...
|
|
bool | GetHit () const |
| Retrieves the hit value for the object. More...
|
|
::Vector3 | GetNormal () const |
| Retrieves the normal value for the object. More...
|
|
::Vector3 | GetPosition () const |
| Retrieves the point value for the object. More...
|
|
RayCollision & | operator= (const ::RayCollision &ray) |
|
void | SetDistance (float value) |
| Sets the distance value for the object. More...
|
|
void | SetHit (bool value) |
| Sets the hit value for the object. More...
|
|
void | SetNormal (::Vector3 value) |
| Sets the normal value for the object. More...
|
|
void | SetPosition (::Vector3 value) |
| Sets the point value for the object. More...
|
|
|
void | set (const ::RayCollision &ray) |
|
Raycast hit information.
Definition at line 11 of file RayCollision.hpp.
◆ RayCollision() [1/7]
raylib::RayCollision::RayCollision |
( |
const ::RayCollision & |
ray | ) |
|
|
inline |
◆ RayCollision() [2/7]
raylib::RayCollision::RayCollision |
( |
bool |
hit, |
|
|
float |
distance, |
|
|
::Vector3 |
point, |
|
|
::Vector3 |
normal |
|
) |
| |
|
inline |
◆ RayCollision() [3/7]
raylib::RayCollision::RayCollision |
( |
const ::Ray & |
ray, |
|
|
const ::BoundingBox & |
box |
|
) |
| |
|
inline |
Get collision info between ray and bounding box.
Definition at line 25 of file RayCollision.hpp.
◆ RayCollision() [4/7]
raylib::RayCollision::RayCollision |
( |
const ::Ray & |
ray, |
|
|
const ::Mesh & |
mesh, |
|
|
const ::Matrix & |
transform |
|
) |
| |
|
inline |
◆ RayCollision() [5/7]
raylib::RayCollision::RayCollision |
( |
const ::Ray & |
ray, |
|
|
::Vector3 |
p1, |
|
|
::Vector3 |
p2, |
|
|
::Vector3 |
p3, |
|
|
::Vector3 |
p4 |
|
) |
| |
|
inline |
◆ RayCollision() [6/7]
raylib::RayCollision::RayCollision |
( |
const ::Ray & |
ray, |
|
|
::Vector3 |
center, |
|
|
float |
radius |
|
) |
| |
|
inline |
Get collision info between ray and sphere.
Definition at line 46 of file RayCollision.hpp.
◆ RayCollision() [7/7]
raylib::RayCollision::RayCollision |
( |
const ::Ray & |
ray, |
|
|
::Vector3 |
p1, |
|
|
::Vector3 |
p2, |
|
|
::Vector3 |
p3 |
|
) |
| |
|
inline |
Get collision info between ray and triangle.
Definition at line 53 of file RayCollision.hpp.
◆ GetDistance()
float raylib::RayCollision::GetDistance |
( |
| ) |
const |
|
inline |
Retrieves the distance value for the object.
- Returns
- The distance value of the object.
Definition at line 63 of file RayCollision.hpp.
◆ GetHit()
bool raylib::RayCollision::GetHit |
( |
| ) |
const |
|
inline |
Retrieves the hit value for the object.
- Returns
- The hit value of the object.
Definition at line 62 of file RayCollision.hpp.
◆ GetNormal()
::Vector3 raylib::RayCollision::GetNormal |
( |
| ) |
const |
|
inline |
Retrieves the normal value for the object.
- Returns
- The normal value of the object.
Definition at line 65 of file RayCollision.hpp.
◆ GetPosition()
::Vector3 raylib::RayCollision::GetPosition |
( |
| ) |
const |
|
inline |
Retrieves the point value for the object.
- Returns
- The point value of the object.
Definition at line 64 of file RayCollision.hpp.
◆ operator=()
RayCollision & raylib::RayCollision::operator= |
( |
const ::RayCollision & |
ray | ) |
|
|
inline |
◆ set()
void raylib::RayCollision::set |
( |
const ::RayCollision & |
ray | ) |
|
|
inlineprotected |
◆ SetDistance()
void raylib::RayCollision::SetDistance |
( |
float |
value | ) |
|
|
inline |
Sets the distance value for the object.
- Parameters
-
value | The value of which to set distance to. |
Definition at line 63 of file RayCollision.hpp.
◆ SetHit()
void raylib::RayCollision::SetHit |
( |
bool |
value | ) |
|
|
inline |
Sets the hit value for the object.
- Parameters
-
value | The value of which to set hit to. |
Definition at line 62 of file RayCollision.hpp.
◆ SetNormal()
void raylib::RayCollision::SetNormal |
( |
::Vector3 |
value | ) |
|
|
inline |
Sets the normal value for the object.
- Parameters
-
value | The value of which to set normal to. |
Definition at line 65 of file RayCollision.hpp.
◆ SetPosition()
void raylib::RayCollision::SetPosition |
( |
::Vector3 |
value | ) |
|
|
inline |
Sets the point value for the object.
- Parameters
-
value | The value of which to set point to. |
Definition at line 64 of file RayCollision.hpp.