ios - run scene (scene kit )? -
is possible run code on apple watch:
scnscene *scene = [scnscene scenenamed:@"art.scnassets/ship.dae"]; // retrieve ship node scnnode *ship = [scene.rootnode childnodewithname:@"ship" recursively:yes]; // animate 3d object [ship runaction:[scnaction repeatactionforever:[scnaction rotatebyx:0 y:2 z:0 duration:1]]]; // retrieve scnview scnview *scnview = (scnview *)self.view; // set scene view scnview.scene = scene; // allows user manipulate camera scnview.allowscameracontrol = yes; // show statistics such fps , timing information scnview.showsstatistics = yes;
i can not put scene on main controller.
scnview *scnview = (scnview *)self.view;
please, help.
the way make apps apple watch watchkit. watchkit not include ability present ios view on watch, specific set of ui controls defined in watchkit framework. see watchkit programming guide details.
Comments
Post a Comment