forked from Dynamitos/Seele
fixing lots of warnings
This commit is contained in:
1 parent
edfe34a394
commit
9cce5977c5
33 files changed
+204
-185
No files matched your search
@@ -311,7 +311,6 @@ void BVH::validateBVH() const {
|
||||
}
|
||||
for (uint32 i = 0; i < dynamicNodes.size(); ++i) {
|
||||
int32 nodeIdx = i;
|
||||
size_t counter = dynamicNodes.size();
|
||||
if (!dynamicNodes[nodeIdx].isValid)
|
||||
continue;
|
||||
while (dynamicNodes[nodeIdx].parentIndex != -1) {
|
||||
|
||||
@@ -17,17 +17,17 @@ class BVH {
|
||||
private:
|
||||
struct AABBCenter {
|
||||
AABB bb;
|
||||
Vector center;
|
||||
entt::entity id;
|
||||
Vector center = Vector();
|
||||
entt::entity id = entt::entity();
|
||||
};
|
||||
struct Node {
|
||||
AABB box;
|
||||
int32 parentIndex = -1;
|
||||
int32 left = -1;
|
||||
int32 right = -1;
|
||||
bool isLeaf;
|
||||
bool isLeaf = false;
|
||||
bool isValid = true;
|
||||
entt::entity owner;
|
||||
entt::entity owner = entt::entity();
|
||||
};
|
||||
void traverseStaticTree(const AABB& aabb, entt::entity source, int32 nodeIndex, Array<Pair<entt::entity, entt::entity>>& overlaps);
|
||||
void traverseDynamicTree(const AABB& aabb, entt::entity source, int32 nodeIndex, Array<Pair<entt::entity, entt::entity>>& overlaps);
|
||||
|
||||
Reference in new issue
Block a user