Read NiGravity fields

actorid
Chris Robinson 12 years ago
parent 3768e04a0c
commit c6c67a1bb4

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

Loading…
Cancel
Save