Revert "Uninit-var endVelocity"

This reverts commit 65b11b9a73a1a9fc6c613b3e54454854b360e1c4.