Handbook
Glossary
handle-triangle-hit ( hit-state ray ta tb tc -- hit-state ? )
Vocabulary
raylib
.
demo
.
mesh-picking
Inputs
hit-state
an
object
ray
an
object
ta
an
object
tb
an
object
tc
an
object
Outputs
hit-state
an
object
?
an
object
Definition
USING:
accessors
kernel
raylib
;
IN:
raylib.demo.mesh-picking
:
handle-triangle-hit
( hit-state ray ta tb tc -- hit-state ? )
get-ray-collision-triangle
over
nearest-hit>>
swap
update-hit?
[
[
>>nearest-hit
]
dip
[
PURPLE
>>color
"Triangle"
>>name
]
when
]
keep
;