I want to attach a particle tail to the entity, how to calculate the velocity of entity movement?