Yes, but in your case, I suppose that you want the reaction of many discrete elements. It should be something like :
PlugIn_InitSensor::Run()
{
Core::SetOf<Physic::Body>& set = Core::SetOf<Physic::Body>::Get("my_set_id");
Util::Sensor::New(set, &Core::SetOf<Physic::Body>::ResultantForce, "Force");
// ...... all your sensor here
}
If your compiler fails, you can try this :
PlugIn_InitSensor::Run()
{
Core::SetOf<Physic::Body>& set = Core::SetOf<Physic::Body>::Get("my_set_id");
Util::Sensor::New(set, &Core::ExtendedSetOf<Physic::Body>::ResultantForce, "Force");
// ...... all your sensor here
}
Don't forget to trigger the "on-the-fly" writting of the sensors txt file with the "_WriteSensorData" plugin in your *.inp file.
Hope this help, Damien.