suspicious aabb draw call

duser
Posts: 16
Joined: Wed Feb 02, 2011 6:48 pm

suspicious aabb draw call

Post by duser »

Going through my callstack of a contactTest, I've noticed that debug drawAabb is being called.
Is this as intended or is this a bug? If it is as intended, why is it like this (typically the draw calls are made during a render state instead of during a sim step as to separate the rendering and system updates)?
This is more a question for curiosity as I have not noticed any issues pertaining to this call at the moment.

Here is the callstack:
mars.exe!btIDebugDraw::drawAabb(const btVector3 & from, const btVector3 & to, const btVector3 & color) Line 140 + 0x21 bytes C++
mars.exe!btCompoundLeafCallback::ProcessChildShape(btCollisionShape * childShape, int index) Line 159 + 0x7a bytes C++
mars.exe!btCompoundLeafCallback::Process(const btDbvtNode * leaf) Line 184 C++
mars.exe!btDbvt::collideTV<btCompoundLeafCallback>(const btDbvtNode * root, const btDbvtAabbMm & vol, btCompoundLeafCallback & policy) Line 935 C++
mars.exe!btCompoundCollisionAlgorithm::processCollision(btCollisionObject * body0, btCollisionObject * body1, const btDispatcherInfo & dispatchInfo, btManifoldResult * resultOut) Line 254 C++
mars.exe!btSingleContactCallback::process(const btBroadphaseProxy * proxy) Line 997 + 0x2d bytes C++
mars.exe!BroadphaseAabbTester::Process(const btDbvtNode * leaf) Line 264 + 0x19 bytes C++
mars.exe!btDbvt::collideTV<BroadphaseAabbTester>(const btDbvtNode * root, const btDbvtAabbMm & vol, BroadphaseAabbTester & policy) Line 935 C++
mars.exe!btDbvtBroadphase::aabbTest(const btVector3 & aabbMin, const btVector3 & aabbMax, btBroadphaseAabbCallback & aabbCallback) Line 275 C++
mars.exe!btCollisionWorld::contactTest(btCollisionObject * colObj, btCollisionWorld::ContactResultCallback & resultCallback) Line 1016 + 0x23 bytes C++


Thank you