Create a new ray_collision object.
Usage
ray_collision(hit, distance, point, normal)
Arguments
- hit
A logical. Did the ray hit something?.
- distance
A number. Distance to nearest hit.
- point
A numeric vector of length 3. Point of nearest hit.
- normal
A numeric vector of length 3. Surface normal of hit.
Note
This class has been auto-generated from the following Raylib struct definition:
typedef struct RayCollision {
bool hit; // Did the ray hit something?
float distance; // Distance to nearest hit
Vector3 point; // Point of nearest hit
Vector3 normal; // Surface normal of hit
} RayCollision;