示例#1
0
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);
	}
}
示例#2
0
void Bone::Update(int32 currentFrame) {
    // TAREA: Implementar la especificacion del enunciado
    TranslationForFrame( currentFrame, &currentX, &currentY );
    currentRotation = RotationForFrame( currentFrame );
    ScaleForFrame( currentFrame, &currentScaleX, &currentScaleY );

    for( unsigned int i = 0; i < children.Size(); i++ )
    {
        children[i].Update( currentFrame );
    }
}