Hi
I want to do raycasting for picking objects in an editor. The problem is, that i need to be very conservative with the ray-length, since it is an editor and objects could be "anywhere" along a line (ie. very far away).
So i start my raycast at some position and then fire into the desired direction with a length of about 10000 units.The problem is, that at least the end-point of that raycast is usually outside the broadphase and thus an assert lets my app crash.
Havok
Numerous unresolved external errors when trying to initialize Havok
Hello,
I recently downloaded the Havok SDK and am following the user guide as I try to use it in my program. The user guide didn't specify what to include so I included exactly what the ConsoleExample did. The problems begin there. Including hkBuiltinTypeRegistry.cxx generates about 606 unresolved external symbol errors such as:
1>Havok.obj : error LNK2001: unresolved external symbol "class hkClass const hkxMeshClass" (?hkxMeshClass@@3VhkClass@@B)
CapsuleShapes and ShapeTransforms
Hi there
When i create a capsule-shape, i can specify two points and a radius for this shape. As i see it, this should eliminate any need to use transform-shapes on capsules, since i can pack any rotation/translation into those points, right ?
I tried it, and it seems to work. But since it is not mentioned in the documentation, i want to make sure, i don't rely on it now, and have it break in some more complicated situations.
Trouble Aligning Meshes And Shapes
Hi all,
I'm new to Havok still, and just working my way through demos and the documentation as I try to integrate some basic physics with my current renderer. I'm currently using a DirectX 9 system.
Mesh shape generation causing odd error.
Whenever I create a triangle mesh shape with a certain mesh, it will throw out "t:BuildcodePcXs0SourceCommon/Base/Math/Vector/hkVector4Util.inl<119> [0x4868f301 ] Assert : 'aabb.isValid()
Aabb at 0020E780 was invalid. (Contains a NaN or min > max)'
My code for generating my triangle meshes is below. If anyone could offer up a better way of doing this please do, as I fear I am doing them completely wrong...
hkpRigidBody* createTriangleMesh(hkpWorld* pWorld, irr::scene::IAnimatedMesh* mesh)
{
Havok initialization question
Hello!
I'm running into a problem when trying to initialize multi-threading (code taken directly from the standalone console demo).
When my program reaches the line
multithreadingUtil = new hkpMultithreadingUtil(info);
an assertion occurs at
DebugUtilMultithreadingCheckhkMultiThreadCheck.cpp, line 177
saying
MarkForRead MarkForWrite missing. Make sure HK_DEBUG_MULTI_THREADING is defined if mixing release and debug libs. See hkMultiThreadingCheck.h for more info.
Using Havok
I feel like I'm missing something. Sorry to sound like a noob but,
-I can't seem to find where the demos project is linking to the source in source folder (VS2005 locks it because I can't rename that folder, but in the solution or project properties I can't find the path for it.
-Also, do we build the source files into a dll? And how to go about this?
I've read and can understand how to use the types defined in Havok. But to be able to set up Havok Physics and Animation in my C++ project/solution, what do I have to do?
Proper Sensor Integration
Hi everyone!
freeing havok
As my first "noob test example" nears the first endphase (I already have three boxes falling on a floor, yay) I need to get rid of all errors and unknown issues. The most important one is deinitialization. Earlier I wasgettingcrashes on
g_hkpMemoryManager->removeReference();
after commenting it outit happened on
g_hkpThreadMemory->removeReference();
now it switched (magically) to the last line (return 0; in my WinMain()), here is my call stack as shown by Visual Studio 2005 Express built-in debugger:
restrict to rotation about 1 axis in constraint
Hi, I'm trying to create a constraint which limits rotation to be about the Z axis, any rotation going on around any other axis should be nuked. The documentation for this is all but extensive though, save for 2 occurences in the demos, where no restriction is made and just identity used, and a 1 line comment in the documentation, one is pretty much on his own. Perhaps it's my math which is failing me.
