void Bone::Update(int32 currentFrame) { TranslationForFrame(currentFrame, &m_currentX, &m_currentY); m_currentRotation = RotationForFrame(currentFrame); ScaleForFrame(currentFrame, &m_currentScaleX, &m_currentScaleY); for (unsigned short int i = 0; i < m_children.Size(); i++) { m_children[i].Update(currentFrame); } }
void Bone::Update(int32 currentFrame) { // TAREA: Implementar la especificacion del enunciado TranslationForFrame( currentFrame, ¤tX, ¤tY ); currentRotation = RotationForFrame( currentFrame ); ScaleForFrame( currentFrame, ¤tScaleX, ¤tScaleY ); for( unsigned int i = 0; i < children.Size(); i++ ) { children[i].Update( currentFrame ); } }