I have a bit of a problem involving physics collision detection.
The player character is holding a weapon, which is attached to their right hand.
The zombie character has an animated ragdoll armature of rigidbodies.
When player character attacks zombie with weapon, and when weapon collides with zombie bodypart, I am notified of the collision: which bodies took part, and the parent nodes of those two rigidbodies.
Now I know that a weapon has struck a specific bodypart on a zombie.
But I don’t know which player was wielding that weapon, or which zombie was struck!
The node information I am provided is too deep in the scene hierarchies of these two characters to tell which characters were involved!
String tags seem like a bad choice to identify parentage, and the Bullet Physics userpointers are already being used by Urho3D.
Urho3D’s RigidBody and Node classes do not support user pointers which I could set to identify my owner object.
Is there any recommendations about how to tag Urho3D objects as being related to some other object, particularly with regards to rapidly identifying the root grandparent of a deeply nested child?