![]() |
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. More... | |
| bool | CheckCollisionSphere (::Vector3 center, float radius) const |
| Detect collision between ray and sphere. More... | |
| bool | CheckCollisionSphere (::Vector3 center, float radius, ::Vector3 *collisionPoint) const |
| Detect collision between ray and sphere, returns collision point. More... | |
| Ray & | Draw (::Color color) |
| Draw a ray line. More... | |
| RayHitInfo | GetCollision (const ::Model &model) |
| Get collision info between ray and model. More... | |
| RayHitInfo | GetCollisionGround (float groundHeight) |
| Get collision info between ray and ground plane (Y-normal plane) More... | |
| RayHitInfo | GetCollisionTriangle (::Vector3 p1, ::Vector3 p2, ::Vector3 p3) |
| Get collision info between ray and triangle. More... | |
| inline ::Vector3 | GetDirection () const |
| inline ::Vector3 | GetPosition () const |
| Ray & | operator= (const ::Ray &ray) |
| void | SetDirection (::Vector3 value) |
| void | SetPosition (::Vector3 value) |
Protected Member Functions | |
| void | set (const ::Ray &ray) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
Definition at line 113 of file Ray.hpp.
Referenced by operator=(), and Ray().
1.8.17