mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
some physics stuff idk
This commit is contained in:
parent
6de9b49d3d
commit
6e5b45453d
2 changed files with 50 additions and 0 deletions
|
@ -29,4 +29,26 @@ namespace Nif
|
|||
shape.post(nif);
|
||||
}
|
||||
|
||||
void bhkEntity::read(NIFStream *nif)
|
||||
{
|
||||
bhkWorldObject::read(nif);
|
||||
responseType = static_cast<hkResponseType>(nif->getChar());
|
||||
nif->skip(1); // Unused
|
||||
processContactDelay = nif->getUShort();
|
||||
}
|
||||
|
||||
void HavokMaterial::read(NIFStream *nif)
|
||||
{
|
||||
if (nif->getVersion() <= NIFFile::NIFVersion::VER_OB_OLD)
|
||||
nif->skip(4); // Unknown
|
||||
material = nif->getUInt();
|
||||
}
|
||||
|
||||
void hkSubPartData::read(NIFStream *nif)
|
||||
{
|
||||
havokFilter = nif->getUInt();
|
||||
numVertices = nif->getUInt();
|
||||
material.read(nif);
|
||||
}
|
||||
|
||||
} // Namespace
|
Loading…
Add table
Add a link
Reference in a new issue