mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-18 13:28:09 +00:00
Visual Debugger implementation
This commit is contained in:
@@ -25,7 +25,7 @@ bool dpCollisionChecks::CheckSpheres(dpEntity* a, dpEntity* b) {
|
||||
if (!a || !b) return false;
|
||||
|
||||
auto posA = a->GetPosition();
|
||||
auto distance = Vector3::DistanceSquared(posA, b->GetPosition());
|
||||
auto distance = NiPoint3::DistanceSquared(posA, b->GetPosition());
|
||||
|
||||
auto sphereA = static_cast<dpShapeSphere*>(a->GetShape());
|
||||
auto sphereB = static_cast<dpShapeSphere*>(b->GetShape());
|
||||
|
@@ -32,6 +32,8 @@ public:
|
||||
void RemoveEntity(dpEntity* entity);
|
||||
|
||||
dNavMesh* GetNavMesh() { return m_NavMesh; }
|
||||
std::vector<dpEntity*>* GetStaticEntities() { return &m_StaticEntities; }
|
||||
std::vector<dpEntity*>* GetDynamicEntities() { return &m_DynamicEntites; }
|
||||
|
||||
private:
|
||||
dpGrid* m_Grid;
|
||||
|
Reference in New Issue
Block a user