00001 #ifndef PHSPRING_H
00002 #define PHSPRING_H
00003 #if _MSC_VER > 1000
00004 #pragma once
00005 #endif // _MSC_VER > 1000
00006
00007 #include "PHSolid.h"
00008 #include <SceneGraph/SGScene.h>
00009
00010 namespace Spr{;
00011 class PHSpring: public SGBehaviorEngine{
00012 public:
00013 Vec3f pos[2];
00014 Quaternionf ori[2];
00015 Vec3f kt, bt;
00016 Vec3f kr, br;
00017 UTRef<PHSolid> solid[2];
00018 SGOBJECTDEF(PHSpring);
00019 PHSpring();
00020 bool AddChildObject(SGObject* o, SGScene* s);
00021 virtual void Step(SGScene* s);
00022 };
00023
00024 }
00025 #endif