38 #ifndef __SIM_ForceOrbit_h__
39 #define __SIM_ForceOrbit_h__
44 #define SIM_NAME_POINTMASS "pointmass"
45 #define SIM_NAME_POINTPOSITION "pointposition"
47 namespace HDK_Sample {
119 DECLARE_STANDARD_GETCASTTOTYPE();
125 getForceOrbitDopDescription());
SIM_Guide * createGuideObjectSubclass() const override
void getForceOnSphereSubclass(const SIM_Object &object, const UT_Vector3 &position, const fpreal radius, const UT_Vector3 &velocity, const UT_Vector3 &angvel, const fpreal mass, UT_Vector3 &force, UT_Vector3 &torque) const override
void getForceOnCircleSubclass(const SIM_Object &object, const UT_Vector3 &position, const UT_Vector3 &normal, const fpreal radius, const UT_Vector3 &velocity, const UT_Vector3 &angvel, const fpreal mass, UT_Vector3 &force, UT_Vector3 &torque) const override
GETSET_DATA_FUNCS_F(SIM_NAME_POINTMASS, PointMass)
Controls the mass of the point we are orbiting.
SIM_API const UT_StringHolder torque
void getForceSubclass(const SIM_Object &object, const UT_Vector3 &position, const UT_Vector3 &velocity, const UT_Vector3 &angvel, const fpreal mass, UT_Vector3 &force, UT_Vector3 &torque) const override
#define SIM_NAME_POINTMASS
void buildGuideGeometrySubclass(const SIM_RootData &root, const SIM_Options &options, const GU_DetailHandle &gdh, UT_DMatrix4 *xform, const SIM_Time &t) const override
We override this method to create the attractor geometry.
SIM_ForceOrbit(const SIM_DataFactory *factory)
GA_API const UT_StringHolder mass
GETSET_DATA_FUNCS_V3(SIM_NAME_POINTPOSITION, PointPosition)
Controls the position of the point we are orbiting.
SIM_API const UT_StringHolder force
SIM_API const UT_StringHolder position
~SIM_ForceOrbit() override
#define SIM_NAME_POINTPOSITION