I was able to serialze btCollisionShape to file. Now I am looking for a way to deserialize it.
I do not wish to add shape to any world at deserialization step.
I just wish to get shape from file.
I was looking on btBulletWorldImporter and http://bulletphysics.org/mediawiki-1.5. ... ialization and it does not look like what I am looking for.
Thanks
Deserializing btCollisionShape
-
- Posts: 82
- Joined: Sun Apr 04, 2010 10:08 pm
Re: Deserializing btCollisionShape
Code: Select all
btBulletWorldImporter importer;
importer.loadFile(bulletName);
btCollisionShape * bt_col = importer.getCollisionShapeByIndex(0);
-
- Posts: 82
- Joined: Sun Apr 04, 2010 10:08 pm
Re: Deserializing btCollisionShape
that code works