I have a subclass that includes an hkArray member. I used regenerateXML.py to build a ...Class.cpp file for it, and successfully serialized it out to an XML file:
-0.749664 -2.569430 -4.160680 -5.999540 -7.431300 -7.218050 -3.828340 -2.335110 -1.993260 -1.564480
The thing that confuses me is that when I read my subclass back into memory from disk, my "m_heightPosts" hkArray is empty; all the other members look to have been read in correctly. Should I be using the "simple array" serialization format mentioned in the docs (m_heightPosts + m_numHeightPosts member var declaration), or is there something simple I'm forgetting to do in the way I have it now?
I have the data in a void* buffer, and read it using the PackfileReader::loadEntireFileInPlace command. This has been working fine for me for existing Havok classes. This is my first attempt using a class of my own (derived off hkReferencedObject).
Thanks in advance!