Jump to content
  • Advertisement
Sign in to follow this  
Kryogenik

Getting Started with Havok

This topic is 2785 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!