package raylib

  1. Overview
  2. Docs

Module Raylib.RayCollisionSource

Sourcetype t'
Sourcetype t = t' ctyp
Sourceval t : t Ctypes.typ
Sourceval hit : t -> bool

Did the ray hit something?

Sourceval distance : t -> float

Distance to the nearest hit

Sourceval point : t -> Vector3.t

Point of the nearest hit

Sourceval normal : t -> Vector3.t

Surface normal of hit

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

Innovation. Community. Security.