RayCollision


Vocabulary
raylib

Class description
Represents collision information from a Ray.

Fields
hitboolDid the ray hit something?
distancefloatDistance to nearest hit
pointVector3Point of nearest hit
normalVector3Surface normal of hit


Definition


STRUCT: RayCollision
{ hit bool } { distance float initial: 0.0 } {
point Vector3 initial:
S{ Vector3 { x 0.0 } { y 0.0 } { z 0.0 } }
} {
normal Vector3 initial:
S{ Vector3 { x 0.0 } { y 0.0 } { z 0.0 } }
} ;


Methods