ios - How do I rotate a node in scenekit based on the current camera angle -
i'm working on project want able use uipangesture rotate node based on current rotation of camera. example, user looking @ geometry attached node , decides rotate it. normally, geometry rotation based on (0, 0, 0) or (0, 0, 0, 0), able rotate along y axis y axis axis perpendicular camera angle, thereby treating whatever camera angle (0, 0, 0, 0). original solution rotate pivot point match camera angle, i'm not seeing in scenekit documentation allows me rotate pivot point @ all, i'm bit lost. advice on issue appreciated. ^_^
Comments
Post a Comment