In SceneKit, all joints of a node have been particular person nodes that you would add baby nodes to so it syncs with the father or mother’s animation. I want to do the identical factor in RealityKit.
The father or mother mannequin I’ve solely lists 5 youngsters entities, not the joint used within the animation, however does have the proper joint identify and transforms I must sync with.
How do I add a toddler entity to a father or mother joint, so the kid entity follows the proper path of the father or mother entity’s animation? I.E. the father or mother entity has a sword swinging animation with a separate sword entity that ought to connect to the hand joint and transfer with the father or mother animation.
I used to be in a position to get one thing type of working by subscribing to the scene updates and setting the kid (sword) entity rework to match the precise joint rework for every replace but it surely would not match up and the rotation is off. This was quite simple in SceneKit, absolutely there’s a easy approach to do that in RealityKit.