Files
watrbx-game-engine/App/v8world/ContactManagerSpatialHash.cpp
2025-09-18 17:55:52 -04:00

23 lines
684 B
C++

#include "stdafx.h"
#include "v8World/ContactManagerSpatialHash.h"
#include "v8World/ContactManager.h"
#include "v8World/Contact.h"
#include "v8World/Assembly.h"
// instantiate for contactmanager.
template class RBX::SpatialHash<RBX::Primitive, RBX::Contact, RBX::ContactManager, CONTACTMANAGER_MAXLEVELS>;
#define CONTACT_MANAGER_MAX_CELLS_PER_PRIMITIVE 100
namespace RBX
{
ContactManagerSpatialHash::ContactManagerSpatialHash(World* world, ContactManager* contactManager)
: SpatialHash<Primitive,Contact,ContactManager, CONTACTMANAGER_MAXLEVELS>(world, contactManager, CONTACT_MANAGER_MAX_CELLS_PER_PRIMITIVE) // max cells per primitive is 100 for contact manager
{
}
}