Sign in to follow this  
Kryogenik

Getting Started with Havok

Recommended Posts

This is my first post in this board. I'm trying to get started with Havok (for collision detection and realtime physics), but I don't know how to start. I downloaded it, and tried to #include the headers and libraries the way someone I know did, but I get all kinds of weird errors (226 in total). Errors like:

syntax error: 'constant'
function returns function
static member 'operator new' has no formal parameters

And they are all inside havok's headers and stuff. Did I download the wrong version or something? I clicked on the Havok Physics and Havok Animation SDKs for Programmers (2010.1.0, VS2008) download link on their website, is that the right one? Am I not including everything I need to? This is the include code:

#include <Common/Base/hkBase.h>
#include <Common/Base/System/hkBaseSystem.h>
#include <Common/Base/System/Error/hkDefaultError.h>
#include <Common/Base/Memory/System/Util/hkMemoryInitUtil.h>
#include <Common/Base/Memory/System/hkMemorySystem.h>
#include <Common/Base/Monitor/hkMonitorStream.h>
#include <Physics/Collide/hkpCollide.h>
#include <Physics/Collide/Shape/Convex/ConvexVertices/hkpConvexVerticesShape.h>
#include <Physics/Collide/Shape/Convex/ConvexVertices/hkpConvexVerticesConnectivity.h>
#include <Physics/Collide/Shape/Convex/ConvexVertices/hkpConvexVerticesConnectivityUtil.h>
#include <Physics/Collide/Util/hkpTriangleCompressor.h>
#include <Physics/Collide/Agent/ConvexAgent/SphereBox/hkpSphereBoxAgent.h>
#include <Physics/Collide/Shape/Convex/Box/hkpBoxShape.h>
#include <Physics/Collide/Shape/Convex/Sphere/hkpSphereShape.h>
#include <Physics/Collide/Dispatch/hkpAgentRegisterUtil.h>
#include <Physics/Dynamics/hkpDynamics.h>
#include <Physics/Dynamics/World/hkpWorld.h>
#include <Physics/Dynamics/Entity/hkpRigidBody.h>
#include <Physics/Utilities/Dynamics/Inertia/hkpInertiaTensorComputer.h>
#include <Common/Base/Thread/Job/ThreadPool/Cpu/hkCpuJobThreadPool.h>
#include <Common/Base/Thread/Job/ThreadPool/Spu/hkSpuJobThreadPool.h>
#include <Common/Base/Thread/JobQueue/hkJobQueue.h>
#include <Common/Visualize/hkVisualDebugger.h>
#include <Physics/Utilities/VisualDebugger/hkpPhysicsContext.h>
#include <Common/Base/KeyCode.h>
#define HK_CLASSES_FILE <Common/Serialize/Classlist/hkClasses.h>
#include <Common/Serialize/Util/hkBuiltinTypeRegistry.cxx>
#pragma comment ( lib, "hkBase.lib" )
#pragma comment ( lib, "hkInternal.lib" )
#pragma comment ( lib, "hkGeometryUtilities.lib" )
#pragma comment ( lib, "hkVisualize.lib" )
#pragma comment ( lib, "hkSerialize.lib" )
#pragma comment ( lib, "hkSceneData.lib" )
#pragma comment ( lib, "hkCompat.lib" )
#pragma comment ( lib, "hkpConstraintSolver.lib" )
#pragma comment ( lib, "hkpCollide.lib" )
#pragma comment ( lib, "hkpDynamics.lib" )
#pragma comment ( lib, "hkpInternal.lib" )
#pragma comment ( lib, "hkpUtilities.lib" )
#pragma comment ( lib, "VdbClient.lib" )

And I set the path to the Source folder in Havok as an additional include directory so it know where to look for the files.

And besides linking issues, I don't know where to start in general. Where's some simple tutorials for Havok (and C++, Direct X 9 if that makes a difference)? Like a box on plane tutorial or something? Thanks for any help.

Share this post


Link to post
Share on other sites
Did you register and download the Intel-sponsored binary download, via havok.com?

I haven't downloaded it myself, but most SDK's are distributed with documentation that describes special steps needed to configure compiler projects. Similarly, usually there are some very basic tutorials. Have you looked at the provided documentation? I am fairly confident there is something there.

Beyond that, there is an active forum dedicated to the Intel-sponsored binary version of Havok, which you can find here:

Intel's Havok forum

Good luck!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this