Another Animation Question?

I really need to do something like this as well and refactor it out of the main physics function so it’s really barebones.