|
|
@ -98,12 +98,23 @@ public:
|
|
|
|
class NiGravity : public Controlled
|
|
|
|
class NiGravity : public Controlled
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
float mForce;
|
|
|
|
|
|
|
|
/* 0 - Wind (fixed direction)
|
|
|
|
|
|
|
|
* 1 - Point (fixed origin)
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
int mType;
|
|
|
|
|
|
|
|
Ogre::Vector3 mPosition;
|
|
|
|
|
|
|
|
Ogre::Vector3 mDirection;
|
|
|
|
|
|
|
|
|
|
|
|
void read(NIFStream *nif)
|
|
|
|
void read(NIFStream *nif)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Controlled::read(nif);
|
|
|
|
Controlled::read(nif);
|
|
|
|
|
|
|
|
|
|
|
|
// two floats, one int, six floats
|
|
|
|
/*unknown*/nif->getFloat();
|
|
|
|
nif->skip(9*4);
|
|
|
|
mForce = nif->getFloat();
|
|
|
|
|
|
|
|
mType = nif->getUInt();
|
|
|
|
|
|
|
|
mPosition = nif->getVector3();
|
|
|
|
|
|
|
|
mDirection = nif->getVector3();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|