update example to support spring velocity

update example to support spring velocity