How to use havok Visual Debugger ?

How to use havok Visual Debugger ?

hellohuan's picture

I have no ider?

Wish for your reply!

helloahuan@163.com

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Basic approach:
#define HK_CLASSES_FILE 
#include 

#define HK_COMPAT_FILE
#include 

#include

hkpPhysicsContext* pYourContext;
hkVisualDebugger* pYourDebugger;

void initialise()
{
 pYourContext = new hkpPhysicsContext();
 hkpPhysicsContext::registerAllPhysicsProcesses();
 pYourContext->addWorld(pYourWorld); // Assuming pYourWorld is an already initialized hkpWorld instance.
 
 hkArray contexts;
 contexts.pushBack(pYourContext);

pYourDebugger = new hkVisualDebugger(pYourContext);
 pYourDebugger->serve();
}

void update()
{

pYourDebugger->step();

}

void deinitialise()
{
 pYourDebugger->shutdown();
 pYourDebugger->removeReference();
 pYourContext->removeReference();
}

Hope that helps. Sorry about the weird spacing.

Login to leave a comment.