I created an assembly using libsc, which has two parts. The first part added some mesh data, and I want to reference the first part in the second part to achieve the goal of reusing the same mesh. How can I do it? I tried using the SetBodyInstanceMeshInstanceKey interface, but it didn’t work properly. It may be a problem with my usage. Can you give me a complete example based on the authoring_stample project?
The ultimate effect to be achieved is that these two parts have different matrix positions and can be judged as true through the “getNodesInstancingSamePart” interface.
For an example, please refer to our docs on Creating Stream Cache Models. On that web page, just do a search for “createpart” to get the exact reference.