How to get 'Parameter Operation' of forces via HDK?

   1697   1   1
User Avatar
Member
3 posts
Joined: 8月 2010
Offline
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
User Avatar
Member
3 posts
Joined: 8月 2010
Offline
I'm sorry there's no one can answer my question.
I solved this problem using ‘active parameter’ w/ some expressions.
I hope this article helps someone like me.
And still waiting for the real answer.
Plz notice me if you know
  • Quick Links