Deserializing btCollisionShape

Post Reply
razer
Posts: 82
Joined: Sun Apr 04, 2010 10:08 pm

Deserializing btCollisionShape

Post by razer »

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
razer
Posts: 82
Joined: Sun Apr 04, 2010 10:08 pm

Re: Deserializing btCollisionShape

Post by razer »

Code: Select all


		btBulletWorldImporter importer;
		importer.loadFile(bulletName);
		btCollisionShape * bt_col = importer.getCollisionShapeByIndex(0);

Is that correct code?
razer
Posts: 82
Joined: Sun Apr 04, 2010 10:08 pm

Re: Deserializing btCollisionShape

Post by razer »

that code works
Post Reply