Havok

Allocate an array of hkVector4 - Solved

This code doews not compile

int numVertices = L->size();
hkVector4 * vertices = new hkVector4[numVertices];

1>Source\Scenario\GameObject.cpp(735): error C2660: 'hkVector4::operator new[]' : function does not take 1 arguments

I am trying to make a hkpConvexVerticesShape as in the manual, but the manual has a directly coded array like...

float vertices[] =
{
-2.0f, 2.0f, 1.0f, 0.0f, // v0
1.0f, 3.0f, 0.0f, 0.0f, // v1
0.0f, 1.0f, 3.0f, 0.0f, // v2
1.0f, 0.0f, 0.0f, 0.0f // v3
};

Alignment of function parameters

Hi. I've been posting quite a bit here lately so I hope I'm not getting on anyone's nerves. Just trying to understand Havok as best as I can :).

I have a

struct Hit
{
hkVector4 position;
//other non-hk variables
};

and a static function

static bool HitCompare( Hit firstHit, Hit secondHit )

When I try to compile, I get

error C2719: 'firstHit': formal parameter with __declspec(align('16')) won't be aligned

how to remove physics world

Hi, all

I have create a physics world , and then I want to remove it like this:

hkReferencedObject::lockAll();
if(m_pWorld)
{
//m_pWorld->markForWrite();
m_pWorld->removeReference();//break point here
m_pWorld = HK_NULL;
}
hkReferencedObject::unlockAll();

the code bring a break point. can anyone tell me how to remove a physics wolrd. 

thanks!

"Infinite" Space Queries in Havok

Hi, I am wondering if there is any way to query areas of space in havok that go infinitely far in a direction. I am looking at something like this:

http://www.youtube.com/watch?v=XtTySkLcF-c

and I'm wondering if theres anyway to do something similar in havok. I suppose I could just make 2 cylinder shapes but honestly it would be much easier to just say, for example, that anything within a certain radius of 2 dimensions, regardless of the depth value, is caught in a query.

Concave Meshes and Holes

We want to use low poly meshes for objects collision in The Dead Linger using Havok.

For example a rock is 500 polys, but we have a 20 poly model for collision.  It may not be Convex.

Also we want things like wooden chairs where there are the legs, seat, and the two vertical back pieces, and a cross piece for the upper back. One should be able to shoot between the pieces or 'hole' in the mesh.

Does Havok supporty concave meshes as a single mesh?  

Help Linking.

Hi,

I'm having a real tough time linking Havok. I've been trying for a few hours now, which is insane, I always get the same problems no matter what I do. I've even tried following a few "Hello World" tutorials I found via google. Same problem. I get lots of "already defined in x.obj" problems and even a couple "unresolved external symbols"( these in particular are confusing me as I'm definetely reference the lib in question ). I've searched around and noticed that others have had similar problems but those threads haven't helped me. :(

Having trouble loading deserializing

I'm back, sorry had some exams and only now I had time to apply the impressive information I've been given by havok_joe in my other threads.

I'm having an exception (cant really see the details, my visual studio crashes on exceptions idk why). The line with the exception is the last one(the callstack can barelly be seen before the crash). The exception is an access restriction at 0x00000000c. I expect this error to be due to some havok settings I might have missed (otherwise I dont know cause it's exactly like in the samples).

Pages

Subscribe to Havok