Hi everyone, I really need urgent help. I'm using joint controller to do the animation. The animation is executed by this method
protected void animOneShot(int frame1, int frame2) {
jc.setRepeatType(Controller.RT_CLAMP);
jc.setTimes(frame1, frame2);
jc.setActive(true);
oneShotLastFrame = frame2;
currentAnimLoop = -1;
}
E.g. for jump animation from frame 1-10, i called animOneShot(1,10). I want to specify my own jump translation. I got 2 animation for jump, one with Y translation, and one without translation. My question is, if I use the jump animation with translation, is the node y position also translated? Can I let say jump to higher place?
For the jump animation without translation, what is the best way to simulate my own Y translation, given the animation that controlled by joint controller is one shot (not per frame)? Can anyone help with giving sample code? Thanks.