Initial commit
This commit is contained in:
32
Torque/SDK/lib/maxsdk31/dynamic.h
Normal file
32
Torque/SDK/lib/maxsdk31/dynamic.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef _DYNAMIC_H_
|
||||
|
||||
#define _DYNAMIC_H_
|
||||
#include "iparamm.h"
|
||||
#include "Simpobj.h"
|
||||
|
||||
class DynamHelperObject : public SimpleObject, IParamArray {
|
||||
public:
|
||||
virtual INode *GetEndNode1(){return NULL;}
|
||||
virtual INode *GetEndNode2(){return NULL;}
|
||||
virtual Point3 ApplyAtEnd1(TimeValue t){return Point3(0.0f,0.0f,0.0f);}
|
||||
virtual Point3 ApplyAtEnd2(TimeValue t){return Point3(0.0f,0.0f,0.0f);}
|
||||
virtual Point3 Force(TimeValue t,TimeValue dt){return Point3(0.0f,0.0f,0.0f);}
|
||||
};
|
||||
|
||||
typedef struct{
|
||||
TimeValue t1,t2;
|
||||
Point3 FlectForce,ApplyAt;
|
||||
int Num;
|
||||
} FlectForces;
|
||||
|
||||
class DynamModObject : public SimpleWSMObject
|
||||
{ public:
|
||||
virtual FlectForces ForceData(TimeValue t)
|
||||
{FlectForces f1;f1.t1=0;f1.t2=0;
|
||||
f1.FlectForce=Point3(0.0f,0.0f,0.0f);
|
||||
f1.ApplyAt=Point3(0.0f,0.0f,0.0f);return f1;}
|
||||
};
|
||||
|
||||
#endif // _DYNAMIC_H_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user