|
|
@ -228,11 +228,14 @@ void ManualBulletShapeLoader::handleNode(btTriangleMesh* mesh, const Nif::Node *
|
|
|
|
&& (!isMarker || (mShape->mHasCollisionNode && !raycasting)))
|
|
|
|
&& (!isMarker || (mShape->mHasCollisionNode && !raycasting)))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(node->hasBounds)
|
|
|
|
if(node->hasBounds)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (node->flags & Nif::NiNode::Flag_BBoxCollision)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mShape->mBoxTranslation = node->boundPos;
|
|
|
|
mShape->mBoxTranslation = node->boundPos;
|
|
|
|
mShape->mBoxRotation = node->boundRot;
|
|
|
|
mShape->mBoxRotation = node->boundRot;
|
|
|
|
mBoundingBox = new btBoxShape(getbtVector(node->boundXYZ));
|
|
|
|
mBoundingBox = new btBoxShape(getbtVector(node->boundXYZ));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else if(node->recType == Nif::RC_NiTriShape)
|
|
|
|
else if(node->recType == Nif::RC_NiTriShape)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mShape->mCollide = !(flags&0x800);
|
|
|
|
mShape->mCollide = !(flags&0x800);
|
|
|
|