(distance) ( heading player -- current next location heading )


Vocabulary
jamshred.player

Inputs
headingan object
playeran object


Outputs
currentan object
nextan object
locationan object
headingan object


Definition


:: (distance)
( heading player -- current next location heading )
player nearest-segment>> player
[ tunnel>> ] [ nearest-segment>> ] bi
heading heading-segment player location>> heading ;