package raylib

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

Did the ray hit something?

val distance : t -> float

Distance to nearest hit

val point : t -> Vector3.t

Point of nearest hit

val normal : t -> Vector3.t

Surface normal of hit

val set_hit : t -> bool -> unit
val set_distance : t -> float -> unit
val set_point : t -> Vector3.t -> unit
val set_normal : t -> Vector3.t -> unit