![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Ray type (useful for raycast) More...
Public Member Functions | |
| Ray (::Vector2 mousePosition, ::Camera camera) | |
| Ray (::Vector3 Position, ::Vector3 Direction) | |
| Ray (const ::Ray &ray) | |
| bool | CheckCollision (const ::BoundingBox &box) const |
| Detect collision between ray and box. | |
| bool | CheckCollisionSphere (::Vector3 center, float radius) const |
| Detect collision between ray and sphere. | |
| bool | CheckCollisionSphere (::Vector3 center, float radius, ::Vector3 *collisionPoint) const |
| Detect collision between ray and sphere, returns collision point. | |
| Ray & | Draw (::Color color) |
| Draw a ray line. | |
| RayHitInfo | GetCollision (const ::Model &model) const |
| Get collision info between ray and model. | |
| RayHitInfo | GetCollisionGround (float groundHeight) const |
| Get collision info between ray and ground plane (Y-normal plane) | |
| RayHitInfo | GetCollisionTriangle (::Vector3 p1, ::Vector3 p2, ::Vector3 p3) const |
| Get collision info between ray and triangle. | |
| ::Vector3 | GetDirection () const |
| Retrieves the direction value for the object. More... | |
| ::Vector3 | GetPosition () const |
| Retrieves the position value for the object. More... | |
| Ray & | operator= (const ::Ray &ray) |
| void | SetDirection (::Vector3 value) |
| Sets the direction value for the object. More... | |
| void | SetPosition (::Vector3 value) |
| Sets the position value for the object. More... | |
|
inline |
|
inline |
|
inline |
1.8.17