Skip to content

Commit e0020ee

Browse files
author
Benjamin Glatzel
committed
Create a default bounding box around the pivot for non-mesh nodes
1 parent 45facd4 commit e0020ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

IntrinsicCore/src/IntrinsicCoreComponentsNode.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ void NodeManager::updateTransforms(const NodeRefArray& p_Nodes)
130130
}
131131
}
132132
}
133+
else
134+
{
135+
_worldAABB(nodeRef) =
136+
Math::AABB(_worldPosition(nodeRef) - glm::vec3(0.5f),
137+
_worldPosition(nodeRef) + glm::vec3(0.5f));
138+
}
133139
}
134140
}
135141
}

0 commit comments

Comments
 (0)