-
Other than deserializing/serializing an already created ConvexHullShape, is there a way to save the baked data? I couldn't find anything I just ended up writing a custom constructor for it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
And what do you do with BakedConvexHullShapeSettings? This doesn't look like something that can be stored to disc, and I don't really see the point of temporarily storing all the members of a ConvexHullShape in another data structure unless you want to load them later. In any case, this is not an API that I would want to support. I think the StreamIn/Out classes should be fast enough to save the baked data. |
Beta Was this translation helpful? Give feedback.
I would suggest to create a StreamIn/Out class that just stores the data in an array of bytes (std::vector<uint8_t> or something similar) and then to use your own serialization functions to store that array.