Open ashutoshmaurya10 opened 6 years ago
Hi Ashutosh, thank you for your comment! I tried the model you uploaded at GLTFKit and it seems working.
Do you want to change the axis of rotation?
SceneKit doesn't have a pause function. You can stop the animation, but you have to restart the animation from the beginning. If you want to pause and restart in the middle of animation, this question might help: Stack Overflow: Pausing a SceneKit animation
Hi @magicien ,
Thanks for the reply. I am too able to play the scene. In Scenekit we have a property (Bool) for the SCNView as isPaused. The pausing and playing which I was referring to is using this property. Our use case is a little tricky. We not only have to play and pause the animations but we have to apply the animation objects to other nodes(other nodes which did not have this animation object attached to them). To elaborate : Suppose the above animation is a rotation of the complete model on click of any mesh. Now what we want for our use case is that if I press on one mesh and fetch the animation object I should be able to apply this object to some other mesh in the model. The importance of axis is realised here as if the two nodes which we are trying to manipulate does not have a common axis then the animation transitions are not transferred. Let me know if you have any doubts in regard to the use case understanding. Thanks & Regards Ashutosh
Hi I am working on playing , pausing my animations attached in the GLTF file but I am facing certain issue with Pivot and the axis for the nodes I am trying to apply the animations to.
Is there any sample which illustrates the playing and pausing of animations attached to respective nodes or any pointers for the same would be really helpful.
Thanks & Regards Ashutosh