ios - Have SCNCamera follow a node at a fixed distance? -


i have scnnode, , scncamera. camera located , in front of node, , looks down on node via scnlookatconstraint have setup. when node moves laterally, camera rotates, instead of moving it. there way camera move node?

you using scnlookatconstraint, name says, make camera @ object only. (you need rotate head @ something)

to make camera move it, need either scntransformconstraint (documentation here), or make camera node child of object want follow.

in case want camera smoothly follow object, , constrained distance (as if dragged rope), scntransformconstraint way go.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -