Topdowntype t = {x : Playground.number;y : Playground.number;vx : Playground.number;vy : Playground.number;heading : Playground.number;speed : Playground.number;next : int;}type params = {accel : Playground.number;friction : Playground.number;grip : Playground.number;steering : Playground.number;steering_speed : Playground.number;}val toy : paramsval drive :
params ->
Playground.number ->
Playground.number ->
Playground.number ->
t ->
tval bounce : (Playground.number -> Playground.number -> bool) -> t -> t -> tval push : Playground.number -> t -> t -> t * ttype track = {points : (Playground.number * Playground.number) array;reach : Playground.number;corner : Playground.number;}val point : track -> int -> Playground.number * Playground.numberval start : track -> int -> Playground.number -> tval distance :
track ->
Playground.number ->
Playground.number ->
Playground.numberval distance_from :
track ->
int ->
int ->
Playground.number ->
Playground.number ->
Playground.numberval ribbon : Playground.color -> Playground.number -> track -> Playground.shapeval progress : track -> t -> Playground.numberval computer : track -> t -> Playground.number * Playground.number