mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
23 lines
684 B
C++
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
|
|
{
|
|
}
|
|
|
|
}
|