verlet-integrate-particle ( particle dt -- particle' )


Vocabulary
fluids

Inputs
particlean object
dtan object


Outputs
particle'an object


Definition


:: verlet-integrate-particle ( particle dt -- particle' )
particle [ p>> ] [ v>> ] bi dt v*n v+ gravity dt dt *
particle m>> 2 * / v*n v+ :> p' p' particle p>> v- dt v/n
:> v' p' v' particle m>> particle_t boa ; inline