In my application, I'd really like to have more direct access to some data that Bullet stores in arrays. In particular, arrays of type btAlignedObjectArray. Before digging too deep, I need to first determine exactly how objects of this type behave. More specifically, I assume the objects stored in these types of arrays are packed. Is this true?
For example, if I have a btAlignedObjectArray that contains instances of a struct with two fields, when the array is filled up, do these struct elements reside at well-defined offsets relative to the (T* m_data;) pointer that resides within the btAlignedObjectArray instance? From my inspection of the class itself, this looks to be the case. If this is true, I'd really like to be able to grab this pointer (m_data) directly out of the array, as opposed to having to iterate through it one element at a time. Unfortunately, I don't have direct access to this field. If what I'm trying to do is valid, is there an easy way to extract is there a way to get this data without modifying the btAlignedObjectArray implementation itself?
Thanks.