Hello, I'm kinda new here and I don't know how it rolls here, but:
I'm trying to write a wrapper of the Havok Physics Source for a well known game prgram called Game Maker. I've been reading the HELP file for Havok and I learned some basic C++ a couple of months ago, along with the basic of making a DLL for Game Maker. My main difficulty is the fact that I'm using Dev-C++ to write the wrapper when the HELP file is based off MSVisual. I finally got the DLL to include all the headers it needs, and there's a bunch of classes with functions. The problem is that when I place a piece of code from the help file like this:
Code:
hkpWorldCinfo info;
info.m_simulationType = hkpWorldCinfo::SIMULATION_TYPE_DISCRETE;
info.m_gravity.set( 0,-9.8f,0);
info.m_collisionTolerance = 0.1f;
info.setBroadPhaseWorldSize( 150.0f );
info.setupSolverInfo( hkpWorldCinfo::SOLVER_TYPE_4ITERS_MEDIUM );
m_world = new hkpWorld( info );
I keep getting errors with undeclared things and functions not working (I'm guessing the functions come from the classes). I'm using the recent Havok Source for PC which is available on the Havok website.