Skip to content

Commit

Permalink
CollisionHandler.h:
Browse files Browse the repository at this point in the history
* Using DynamicsSystem* as argument in rebuild_AABB_bvh() instead of vector of rigid bodies.
  • Loading branch information
razterizer committed Oct 25, 2024
1 parent 42c3f96 commit eb22bcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dynamics/CollisionHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#pragma once
#include "../Rectangle.h"
#include "RigidBody.h"
#include "DynamicsSystem.h"


namespace dynamics
Expand All @@ -32,7 +33,7 @@ namespace dynamics
}

void rebuild_AABB_bvh(int NR, int NC,
const std::vector<std::unique_ptr<RigidBody>>& rigid_bodies)
const DynamicsSystem* dyn_sys)
{
m_aabb_bvh->children.clear();
m_aabb_bvh->aabb = { 0.f, 0.f, static_cast<float>(NR), static_cast<float>(NC) };
Expand Down

0 comments on commit eb22bcd

Please sign in to comment.