Dict issue?

It might be difficult to tell the compiler which function to expect. But you can add a type assertion

(vex, vey, vez) = f(t)::Tuple{Float64, Float64, Float64} 

(or something like that - - typing on my phone here)

To simplify, can’t you write

data["rigid_body_velo"] = (1, velo_func) 

?