Exemplo n.º 1
0
void Box2DBody::setFixedRotation(bool fixedRotation)
{
    if (mFixedRotation == fixedRotation)
        return;

    mFixedRotation = fixedRotation;
    if (mBody)
        mBody->SetFixedRotation(fixedRotation);
    emit fixedRotationChanged();
}
Exemplo n.º 2
0
void Box2DBody::setFixedRotation(bool _fixedRotation)
{
    if (fixedRotation() == _fixedRotation)
        return;
    if (mBody)
        mBody->SetFixedRotation(_fixedRotation);
    else
        mBodyDef.fixedRotation = _fixedRotation;

    emit fixedRotationChanged();
}
Exemplo n.º 3
0
void Box2DItem::setFixedRotation(const bool &fixedRotation)
{
    if (m_fixedRotation != fixedRotation) {
        m_fixedRotation = fixedRotation;

        if (m_body)
            m_body->SetFixedRotation(fixedRotation);

        emit fixedRotationChanged();
    }
}
Exemplo n.º 4
0
void Entity::setFixedRotation(const bool &fixedRotation)
{
    if (m_fixedRotation == fixedRotation)
        return;

    m_fixedRotation = fixedRotation;

    if (m_body)
        m_body->SetFixedRotation(fixedRotation);

    emit fixedRotationChanged();
}