I have an articulated character created and animated in Blender, imported into Xcode as a .dae. I load a "run" animation (another .dae) and apply it to the character's armature via .addAnimation(). Works fine.
I would like to programmatically (dynamically, based on game state) rotate the character's head node X degrees to simulate looking in various directions as the character runs. e.g., headNode.rotation = ... However, not surprisingly, the animation attached to the armature's node hierarchy overrides anything I do in code. I tried setting the rotation within scenekit delegate method (e.g., renderer didApplyAnimationsAtTime) to no avail.
Is what I'm trying to do possible? Thank you.