void Box2DMouseJoint::setMaxForce(float maxForce) { if (mMouseJointDef.maxForce == maxForce) return; mMouseJointDef.maxForce = maxForce; if (mouseJoint()) mouseJoint()->SetMaxForce(maxForce); emit maxForceChanged(); }
void Box2DFrictionJoint::setMaxForce(float force) { if (mFrictionJointDef.maxForce == force) return; mFrictionJointDef.maxForce = force; if (mFrictionJoint) mFrictionJoint->SetMaxForce(force); emit maxForceChanged(); }
void Box2DMotorJoint::setMaxForce(float maxForce) { if (m_maxForce == maxForce) return; m_maxForce = maxForce; if (motorJoint()) motorJoint()->SetMaxForce(maxForce); emit maxForceChanged(); }
void Box2DMouseJointItem::setMaxForce(const float &maxForce) { if (m_maxForce != maxForce) { m_maxForce = maxForce; if (m_joint) m_joint->SetMaxForce(maxForce); emit maxForceChanged(); } }
void Box2DFrictionJoint::setMaxForce(float maxForce) { if (!(b2IsValid(maxForce) && maxForce >= 0.0f)) { qWarning() << "FrictionJoint: Invalid maxForce:" << maxForce; return; } if (mFrictionJointDef.maxForce == maxForce) return; mFrictionJointDef.maxForce = maxForce; if (frictionJoint()) frictionJoint()->SetMaxForce(maxForce); emit maxForceChanged(); }