Add xphysmass structures

This commit is contained in:
Nicholas Johnson 2025-09-03 13:20:51 -04:00
parent 2e09f532b9
commit 3a718acb50
2 changed files with 50 additions and 0 deletions

View File

@ -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();
}

23
libs/xassets/xphysmass.h Normal file
View File

@ -0,0 +1,23 @@
#ifndef XPHYSMASS_H
#define XPHYSMASS_H
#include "xasset.h"
#include <QVector3D>
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