Reputation: 91
I have a rocket, earth and moon. My rocket is added as a child to the moon, the moon is added as a child to the moon orbital node, and the moon orbital node is added as a child to the earth. When the moon orbits around the earth, the rocket does not move with it while added as a physics body in the physics world. I would like the rocket's physics body to move relative to its parent moon node, not relative to the entire scene. That way it will orbit the earth along with the moon. How can I achieve this? Thank you!
Upvotes: 0
Views: 148
Reputation: 3522
I think you are looking for physic bodies welding aka joints in Scenekit's
jargon
please take a look at this DOCS.
Upvotes: 1