src/body/RigidBody.cpp
void RigidBody::resetTorque() {

    // If it is not a dynamic body, we do nothing
    if (mWorld.mRigidBodyComponents.getBodyType(mEntity) != BodyType::DYNAMIC) return;

    // Set the external torque to zero
    mWorld.mRigidBodyComponents.setExternalTorque(mEntity, Vector3(0, 0, 0));
}
// Reset the accumulated torque to zero
Reset the accumulated torque to zero
Reset the accumulated torque to zero
void RigidBody::resetTorque() {
    if (mWorld.mRigidBodyComponents.getBodyType(mEntity) != BodyType::DYNAMIC) return;
    mWorld.mRigidBodyComponents.setExternalTorque(mEntity, Vector3(0, 0, 0));
}
void RigidBody :: resetTorque ( ) { if ( mWorld . mRigidBodyComponents . getBodyType ( mEntity ) != BodyType :: DYNAMIC ) return ; mWorld . mRigidBodyComponents . setExternalTorque ( mEntity , Vector3 ( 0 , 0 , 0 ) ) ; }
Reset the accumulated torque to zero
Reset the accumulated torque to zero
// If it is not a dynamic body, we do nothing // Set the external torque to zero