greetings, I've got a question about Extending the .bullet format.
Enable the 'INTERNAL_UPDATE_SERIALIZATION_STRUCTURES' - DONE
Add it to the "char *includefiles[]" array. - DONE
Get new Bullet/src/LinearMath/btSerializer.cpp file. - DONE
Well, I know about btDefaultSerializer and I known how to save simple .bullet to file. But how can I save my own data structure to .bullet file and how can I load it from .bullet file?
Extending the .bullet format
-
- Posts: 3
- Joined: Tue Nov 24, 2015 6:12 pm
Re: Extending the .bullet format
any ideas?
-
- Posts: 4
- Joined: Tue Dec 15, 2015 3:54 pm
Re: Extending the .bullet format
My guess is that you would have to make a new BT_MAKE_ID and invoke serializer->finalizeChunk with that ID
Later, you can catch the buffer in btBulletFile::parseData and then do whatever you want with it
I might be totally wrong tho, there's surely zillion details about it
Erwin Coumans surely knows best
Later, you can catch the buffer in btBulletFile::parseData and then do whatever you want with it
I might be totally wrong tho, there's surely zillion details about it
Erwin Coumans surely knows best
-
- Posts: 3
- Joined: Tue Nov 24, 2015 6:12 pm
Re: Extending the .bullet format
thanks for the reply
Where ? I can find only one article about itjszirani wrote: there's surely zillion details about it