#include "Rigid_body_impl.h"

namespace MM
{

void Rigid_body_impl::
//erase (Joint & joint)
//erase (Joint & ref)
erase (Joint &)
{
    FIX;
    //joints_.remove (joint);
}

void Rigid_body_impl::
add_joint (Fixed_joint * adoptee)
{
    joints_.push_back (*adoptee);
    fixed_joints_.adopt (adoptee);
}

void Rigid_body_impl::
add_joint (Float_joint * adoptee)
{
    joints_.push_back (*adoptee);
    float_joints_.adopt (adoptee);
}

}//MM
