Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Stephen Hanson
Stephen Hanson
2,030 Points

How to update per frame in Scenekit

I'm attempting to make a 3d game in Scenekit and for the controls to work I need to update per frame. How can I call a function per frame?

1 Answer

Greg Kaleka
Greg Kaleka
39,021 Points

Hi Stephen,

I didn't answer right away because I don't actually know the answer :0

I'm not sure if what you want to do is possible. I've never used SceneKit, but a quick search of the documentation turned up the SCNAction class, which allows you to set animations for a given duration. Not what you're asking for, but it's something!

Good luck!