Setting gravity for SceneKit ParticleEngine particles
问题 I'm just experimenting with SceneKit as a continuing migration through methods of 3D rendering. I have played with SceneKit and it is generally as advertised. One troublesome aspect (for me) is that while I can create ParticleEngines via the UI or code, I can't figure out how to set the gravitational field for particles created via code. The working code is here: https://github.com/rkwright/ParticleTest. Works with XCode 12.3 and iOS 15.3 Here is the function that sets up the ParticleEngine