package raylib

  1. Overview
  2. Docs
type t'
type t = t' ctyp
val hit : t -> bool

Did the ray hit something?

val distance : t -> float

Distance to nearest hit

val position : t -> Vector3.t

Position of nearest hit

val normal : t -> Vector3.t

Surface normal of hit

OCaml

Innovation. Community. Security.