diff --git a/libs/xassets/xphysmass.cpp b/libs/xassets/xphysmass.cpp new file mode 100644 index 0000000..7205e16 --- /dev/null +++ b/libs/xassets/xphysmass.cpp @@ -0,0 +1,27 @@ +#include "xphysmass.h" + +XPhysMass::XPhysMass() + : XAsset() + , mCenterOfMass() + , mMomentsOfInertia() + , mProductsOfInertia() +{ + +} + +XPhysMass::~XPhysMass() +{ + +} + +void XPhysMass::ParseData(QDataStream *aStream) +{ + +} + +void XPhysMass::Clear() +{ + mCenterOfMass = QVector3D(); + mMomentsOfInertia = QVector3D(); + mProductsOfInertia = QVector3D(); +} diff --git a/libs/xassets/xphysmass.h b/libs/xassets/xphysmass.h new file mode 100644 index 0000000..cf11957 --- /dev/null +++ b/libs/xassets/xphysmass.h @@ -0,0 +1,23 @@ +#ifndef XPHYSMASS_H +#define XPHYSMASS_H + +#include "xasset.h" + +#include + +class XPhysMass : public XAsset +{ +public: + XPhysMass(); + ~XPhysMass(); + + virtual void ParseData(QDataStream* aStream) override; + virtual void Clear() override; + +private: + QVector3D mCenterOfMass; + QVector3D mMomentsOfInertia; + QVector3D mProductsOfInertia; +}; + +#endif // XPHYSMASS_H