Create and use a target for SCNCamera

I am starting from using 3D software where most cameras have a target, making it much easier to move the camera and point of view and then use a "free camera" that doesn't get the target.

How do I do this in Scene Kit?

eg. my first thought was to use the SCNNode as a dummy target view, fixed in world space, linked through a physical connection to the camera.

When attempting to pan the camera, release the mannequin from its castle in world space. All other operations (turn, cart, roll) the camera is moved / to the stationary dummy. And the movement of the dummy makes the camera track it.

Is there a better way? Or easier? Or in a smarter way?

+3


source to share





All Articles