Raycast hit information.
More...
|
| RayHitInfo (bool Hit, float Distance, ::Vector3 Position, ::Vector3 Normal) |
|
| RayHitInfo (const ::Ray &ray, ::Vector3 p1, ::Vector3 p2, ::Vector3 p3) |
| Get collision info between ray and triangle.
|
|
| RayHitInfo (const ::Ray &ray, const ::Mesh &mesh, const ::Matrix &transform) |
| Get collision info between ray and mesh.
|
|
| RayHitInfo (const ::Ray &ray, const ::Model &model) |
| Get collision info between ray and model.
|
|
| RayHitInfo (const ::Ray &ray, float groundHeight) |
| Get collision info between ray and ground plane (Y-normal plane)
|
|
| RayHitInfo (const ::RayHitInfo &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 position value for the object. More...
|
|
RayHitInfo & | operator= (const ::RayHitInfo &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 position value for the object. More...
|
|
Raycast hit information.
Definition at line 11 of file RayHitInfo.hpp.
◆ GetDistance()
float raylib::RayHitInfo::GetDistance |
( |
| ) |
const |
|
inline |
Retrieves the distance value for the object.
- Returns
- The distance value of the object.
Definition at line 58 of file RayHitInfo.hpp.
◆ GetHit()
bool raylib::RayHitInfo::GetHit |
( |
| ) |
const |
|
inline |
Retrieves the hit value for the object.
- Returns
- The hit value of the object.
Definition at line 57 of file RayHitInfo.hpp.
◆ GetNormal()
::Vector3 raylib::RayHitInfo::GetNormal |
( |
| ) |
const |
|
inline |
Retrieves the normal value for the object.
- Returns
- The normal value of the object.
Definition at line 60 of file RayHitInfo.hpp.
◆ GetPosition()
::Vector3 raylib::RayHitInfo::GetPosition |
( |
| ) |
const |
|
inline |
Retrieves the position value for the object.
- Returns
- The position value of the object.
Definition at line 59 of file RayHitInfo.hpp.
◆ SetDistance()
void raylib::RayHitInfo::SetDistance |
( |
float |
value | ) |
|
|
inline |
Sets the distance value for the object.
- Parameters
-
value | The value of which to set distance to. |
Definition at line 58 of file RayHitInfo.hpp.
◆ SetHit()
void raylib::RayHitInfo::SetHit |
( |
bool |
value | ) |
|
|
inline |
Sets the hit value for the object.
- Parameters
-
value | The value of which to set hit to. |
Definition at line 57 of file RayHitInfo.hpp.
◆ SetNormal()
void raylib::RayHitInfo::SetNormal |
( |
::Vector3 |
value | ) |
|
|
inline |
Sets the normal value for the object.
- Parameters
-
value | The value of which to set normal to. |
Definition at line 60 of file RayHitInfo.hpp.
◆ SetPosition()
void raylib::RayHitInfo::SetPosition |
( |
::Vector3 |
value | ) |
|
|
inline |
Sets the position value for the object.
- Parameters
-
value | The value of which to set position to. |
Definition at line 59 of file RayHitInfo.hpp.