/MAFocusNode

Custom Focus Node designed for SceneKit, a part of ARKit. Requires at least iOS 13.

Primary LanguageSwift

MAFocusNode

Custom Focus Node designed for SceneKit, a part of ARKit. Requires at least iOS 13.

Focus node reacts to changes in camera angle and angular velocity with room for additional customizability using focus node velocity.

The implementation rotates the focus node depending on the orientation of the camera. For example, if the camera is rotated 45 degrees counterclockwise along the z-axis, the focus node will also do the same.

Screen Shot 2022-06-22 at 1 33 18 AM

Additionally, scale and rotation transforms area also applied onto the focus node depending on how the camera's angular velocity changes along the x and y axes.

Screen Shot 2022-06-22 at 1 34 19 AM

Focus Node Demo:

Focus Node Demo