Make velocty a vector instead of scalar.