Add xphysmass structures
This commit is contained in:
parent
2e09f532b9
commit
3a718acb50
27
libs/xassets/xphysmass.cpp
Normal file
27
libs/xassets/xphysmass.cpp
Normal 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
23
libs/xassets/xphysmass.h
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user