28 #ifndef HPL_PHYSICS_JOINT_HINGE_H 29 #define HPL_PHYSICS_JOINT_HINGE_H 31 #include "hpl1/engine/physics/PhysicsJoint.h" 37 kSaveData_ChildClass(iPhysicsJoint, iPhysicsJointHinge) {
38 kSaveData_ClassInit(iPhysicsJointHinge) public :
float mfMaxAngle;
41 virtual iSaveObject *CreateSaveObject(cSaveObjectHandler * apSaveObjectHandler, cGame * apGame);
42 virtual int GetSaveCreatePrio();
53 :
iPhysicsJoint(asName, apParentBody, apChildBody, apWorld, avPivotPoint) {}
56 virtual void SetMaxAngle(
float afAngle) = 0;
57 virtual void SetMinAngle(
float afAngle) = 0;
58 virtual float GetMaxAngle() = 0;
59 virtual float GetMinAngle() = 0;
61 ePhysicsJointType GetType() {
return ePhysicsJointType_Hinge; }
76 #endif // HPL_PHYSICS_JOINT_HINGE_H
virtual void SaveToSaveData(iSaveData *apSaveData)
Definition: PhysicsWorld.h:115
Definition: SaveGame.h:130
Definition: PhysicsBody.h:117
Definition: PhysicsJointHinge.h:47
Definition: SaveGame.h:111
virtual iSaveData * CreateSaveData()
virtual void LoadFromSaveData(iSaveData *apSaveData)
Definition: PhysicsJoint.h:135
virtual void SaveDataSetup(cSaveObjectHandler *apSaveObjectHandler, cGame *apGame)
Definition: SaveGame.h:183