Handbook
Glossary
handle-ground-hit ( hit-state ray -- hit-state )
Vocabulary
raylib
.
demo
.
mesh-picking
Inputs
hit-state
an
object
ray
an
object
Outputs
hit-state
an
object
Definition
USING:
accessors
kernel
raylib
;
IN:
raylib.demo.mesh-picking
:
handle-ground-hit
( hit-state ray -- hit-state )
0
get-ray-collision-ground
over
nearest-hit>>
swap
update-hit?
[
>>nearest-hit
]
dip
[
GREEN
>>color
"Ground"
>>name
]
when
;