Fixed octree and API

Rewrote AddObject function in octree and OnPossibleCollision in
PhysocsAPI_Impl
This commit is contained in:
Robin Engman 2013-12-04 09:51:48 +01:00
parent 0a0e327d71
commit b03e9af027
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ void Octree::AddObject(UniquePointer< ICustomBody > customBodyRef)
data.next = NULL;
data.prev = NULL;
data.customBodyRef = customBodyRef;
this->mapReferences.insert(std::pair <ICustomBody*, unsigned int> (customBodyRef, this->leafData.size()));
this->mapReferences.insert(std::pair <ICustomBody*, unsigned int> (data.customBodyRef, this->leafData.size()));
this->leafData.push_back(data);
/*if(tempPtr != NULL)

View File

@ -20,7 +20,7 @@ namespace
float deltaWhen;
Float3 worldWhere;
if( deuter->Intersects(*deuter, 1.0f, deltaWhen, worldWhere) )
if( proto->Intersects(*deuter, 1.0f, deltaWhen, worldWhere) )
{
proto->CallSubscription( proto, deuter );
}