Skip to contents

Create a new ray object.

Usage

ray(position, direction)

Arguments

position

A numeric vector of length 3. Ray position (origin).

direction

A numeric vector of length 3. Ray direction.

Value

A ray

Note

This class has been auto-generated from the following Raylib struct definition:

typedef struct Ray {
    Vector3 position;       // Ray position (origin)
    Vector3 direction;      // Ray direction
} Ray;