在cocos2dx中如何实现,SpineA角色加到SpineB角色的某个骨头上,使SpineB角色跟SpineA骨头运动
cocos2dx中如何实现,SpineA角色加到SpineB角色的某个骨头上
That's currently not directly possible due to how cocos2dx rendering works. But you can achieve something similar with the render separator. See:
EsotericSoftware/spine-runtimesblob/4.2/spine-cocos2dx/example/Classes/SkeletonRendererSeparatorExample.cpp
I'm afraid the auto-translation isn't great. Can you please describe in detail what you want to achieve? Possibly with illustrations?
For example, adding character A to character B's hand, character A can move with character B, and character A has its own animation
I'm afraid that is not possible, due to how the cocos2dX rendering pipeline works. We can not interleave rendering of multiple skeletons like you describe with cocos2dX.