28 #ifndef HPL_PHYSICS_JOINT_BALL_H 29 #define HPL_PHYSICS_JOINT_BALL_H 31 #include "hpl1/engine/physics/PhysicsJoint.h" 37 kSaveData_ChildClass(iPhysicsJoint, iPhysicsJointBall) {
38 kSaveData_ClassInit(iPhysicsJointBall) public :
float mfMaxConeAngle;
39 float mfMaxTwistAngle;
42 virtual iSaveObject *CreateSaveObject(cSaveObjectHandler * apSaveObjectHandler, cGame * apGame);
43 virtual int GetSaveCreatePrio();
54 :
iPhysicsJoint(asName, apParentBody, apChildBody, apWorld, avPivotPoint) {}
57 virtual void SetConeLimits(
const cVector3f &avPin,
float afMaxConeAngle,
float afMaxTwistAngle) = 0;
60 float GetMaxConeAngle() {
return mfMaxConeAngle; }
61 float GetMaxTwistAngle() {
return mfMaxTwistAngle; }
62 cVector3f GetConePin() {
return mvConePin; }
64 ePhysicsJointType GetType() {
return ePhysicsJointType_Ball; }
74 float mfMaxTwistAngle;
80 #endif // HPL_PHYSICS_JOINT_BALL_H
virtual iSaveData * CreateSaveData()
Definition: PhysicsWorld.h:115
Definition: SaveGame.h:130
Definition: PhysicsBody.h:117
Definition: SaveGame.h:111
virtual void SaveDataSetup(cSaveObjectHandler *apSaveObjectHandler, cGame *apGame)
Definition: PhysicsJointBall.h:48
virtual void SaveToSaveData(iSaveData *apSaveData)
virtual void LoadFromSaveData(iSaveData *apSaveData)
Definition: PhysicsJoint.h:135
Definition: SaveGame.h:183