void Box2DBody::setFixedRotation(bool fixedRotation) { if (mFixedRotation == fixedRotation) return; mFixedRotation = fixedRotation; if (mBody) mBody->SetFixedRotation(fixedRotation); emit fixedRotationChanged(); }
void Box2DBody::setFixedRotation(bool _fixedRotation) { if (fixedRotation() == _fixedRotation) return; if (mBody) mBody->SetFixedRotation(_fixedRotation); else mBodyDef.fixedRotation = _fixedRotation; emit fixedRotationChanged(); }
void Box2DItem::setFixedRotation(const bool &fixedRotation) { if (m_fixedRotation != fixedRotation) { m_fixedRotation = fixedRotation; if (m_body) m_body->SetFixedRotation(fixedRotation); emit fixedRotationChanged(); } }
void Entity::setFixedRotation(const bool &fixedRotation) { if (m_fixedRotation == fixedRotation) return; m_fixedRotation = fixedRotation; if (m_body) m_body->SetFixedRotation(fixedRotation); emit fixedRotationChanged(); }