screen-width screen-height "raylib [models] example - mesh-picking" init-window ;
: make-camera ( -- camera )
- Camera3D <struct>
+ Camera3D new
20 30 20 <Vector3> >>position
0 10 0 <Vector3> >>target
0 1.6 0 <Vector3> >>up
TUPLE: hit-state name color nearest-hit ;
: <hit-state> ( -- obj )
"None" WHITE
- RayCollision <struct>
+ RayCollision new
most-positive-finite-float >>distance
f >>hit
hit-state boa ;
! LOG_ALL set-trace-log-level
[
make-camera :> camera
- Ray <struct> :> ray
+ Ray new :> ray
init-assets :> ( tower triangle )
f :> bary!