simpleSpring/simpleSpring.h
#include <maya/MIOStream.h>
#include <maya/MTime.h>
#include <maya/MVector.h>
#include <maya/MObject.h>
#include <maya/MPlug.h>
#include <maya/MDataBlock.h>
#include <maya/MFnPlugin.h>
#include <maya/MPxSpringNode.h>
#define McheckErr(stat, msg) \
if ( MS::kSuccess != stat ) \
{ \
cerr << msg; \
return MS::kFailure; \
}
{
public:
simpleSpring();
virtual ~simpleSpring();
static void *creator();
double damping, double restLength,
double endMass1, double endMass2,
private:
double factor;
};
inline double simpleSpring::springFactor(
MDataBlock& block )
{
double value = 0.0;
return( value );
}
inline double simpleSpring::end1WeightValue(
MDataBlock& block )
{
double value = 0.0;
return( value );
}
inline double simpleSpring::end2WeightValue(
MDataBlock& block )
{
double value = 0.0;
return( value );
}