conceptgame Posted December 29, 2015 Report Share Posted December 29, 2015 1 hour ago, lucid said: Which animation is that? Also it looks like the legs are in the normal position - does the animation play stably, or is there constant rotation and flipping of the whole character? It is animation 0 (walking). With the animation 1 (idle), the first frame is correct (elapsedTime==0) but then the rest is going strange: parts of the body are always turning in the same direction, no flipping. Here is how it looks like when it is the first frame by animation 1: 1 hour ago, lucid said: Is this code used somewhere? Yes, just below in the code posted above: childPosition.x = (preMult.x * angleCos) + (preMult.y * angleSin); childPosition.y = -(preMult.x * angleSin) + (preMult.y * angleCos); I am also using it for bones to debug and I will certainly use something similar for points and boxes. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.