I'm trying to get a model to play an animation only when it is moving/rotating as a result of onBinding being called in jME3. However, whenever I do this, the animation freezes at frame 1, presumably because it's calling the animation so frequently it has no time to finish.
So, is there a way to call the animation to play while the movement keys are being held down, so that the animation will play unhindered, and then stop it once the movement keys aren't being pressed anymore?
EDIT: Fixed by using a set of boolean variables that flip depending on what the model is "doing."