Got it working with the code above plus this in the update function:
if(WMs.elms())
{
WMs[0].cskel.clear();
WMs[0].cskel.animate(UID(3359781711, 1168152733, 2036380578, 3681155399), Time.time());
WMs[0].cskel.updateMatrix (WMs[0].matrix());
}
Do not know if it is the wright way but it works
Also the OBJ_WM Class object can be left without parameters.
GT
it work for all element of same object class too. Added 5 wind mill on map and they are all turning
if(WMs.elms())
{
for(int i=0; i<WMs.elms(); i++)
{
WMs[i].cskel.clear();
WMs[i].cskel.animate(UID(3359781711, 1168152733, 2036380578, 3681155399), Time.time());
WMs[i].cskel.updateMatrix (WMs[i].matrix());
}
}