Hi! I'm trying to make RBD Solver in DOP with HDK and having a problem with getting forces.
const SIM_Data *DopData;
for(int i = 0; i< CurrentObject->getNumSubData(); i++)
{
if(DopData = currObject->getNthConstSubData(
&forcename, SIM_DataFilterByType(“SIM_ForceUniform”), f,
0, SIM_DataFilterAll() ))
{
//—- apply UniformForce
}
}
I thought ‘getNthConstSubData’ fn returns null except the first time,
when ‘Parameter Operation’ is set to ‘Set Initial’.
But the result is the same as ‘Set Always’.
Did I something wrong?
Please give me some help!
Cheers,
Yj