Gems/EMotionFX/Code/EMotionFX/Source/Actor.cpp
void Actor::ScaleToUnitType(MCore::Distance::EUnitType targetUnitType)
    {
        if (m_unitType == targetUnitType)
        {
            return;
        }

        // calculate the scale factor and scale
        const float scaleFactor = static_cast<float>(MCore::Distance::GetConversionFactor(m_unitType, targetUnitType));
        Scale(scaleFactor);

        // update the unit type
        m_unitType = targetUnitType;
    }
// scale everything to the given unit type
scale everything to the given unit type
scale everything to the given unit type
void Actor::ScaleToUnitType(MCore::Distance::EUnitType targetUnitType)
    {
        if (m_unitType == targetUnitType)
        {
            return;
        }
        const float scaleFactor = static_cast<float>(MCore::Distance::GetConversionFactor(m_unitType, targetUnitType));
        Scale(scaleFactor);
        m_unitType = targetUnitType;
    }
void Actor :: ScaleToUnitType ( MCore :: Distance :: EUnitType targetUnitType ) { if ( m_unitType == targetUnitType ) { return ; } const float scaleFactor = static_cast < float > ( MCore :: Distance :: GetConversionFactor ( m_unitType , targetUnitType ) ) ; Scale ( scaleFactor ) ; m_unitType = targetUnitType ; }
scale everything to the given unit type
scale everything to the given unit type
// calculate the scale factor and scale // update the unit type