using namespace HDK_Sample;
void
{
}
{
}
SIM_ForceOrbit::~SIM_ForceOrbit()
{
}
SIM_ForceOrbit::getForceOrbitDopDescription()
{
"Point Position");
"Point Mass");
};
};
"hdk_orbit",
"Orbit Force",
classname(),
theTemplates);
theDopDescription.setGuideTemplates(theGuideTemplates);
theDopDescription.setDefaultUniqueDataName(1);
return &theDopDescription;
}
{
}
void
{
if( !options.
hasOption(theGuideShowName.getToken()) ||
!options.
getOptionB(theGuideShowName.getToken()) )
return;
{
#if defined(HOUDINI_11)
#else
#endif
if( options.
hasOption(theGuideColorName.getToken()) )
for(int axis = 0; axis < 3; ++axis)
{
pos(axis) = -0.5;
pos(axis) = 0.5;
#if defined(HOUDINI_11)
#else
#endif
if(attCd.isValid())
}
}
if( xform )
{
if( options.
hasOption(theGuideSizeName.getToken()) )
{
xform->
scale(scale, scale, scale);
}
}
}
void
{
distancesquared =
distance2(position, pointposition);
{
force *= (mass * getPointMass()) / distancesquared;
}
else
force = 0.0;
torque = 0.0;
}
void
{
}
void
{
}