简体   繁体   中英

Joining nodes in SceneKit

How to join nodes in SceneKit models together so that any modification of position or size of one of this node can affect to position (and, optionally, size) of others? For example, using great tutorial at http://www.raywenderlich.com/83748/beginning-scene-kit-tutorial , I've build model of methane molecule. I need automatically change position of four hydrogen atom if I programmatically change radius of carbon atom in center of model.

Thank you.

you can group all your atom nodes under a common molecule node (that node doe snot have any geometry, just child nodes). When you move or scale the molecule, the effect will be applied on every atom.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM