Latest 1.2.1
Homepage https://github.com/maxxfrazer/ARKit-FocusNode
License MIT
Platforms ios 11.3
Dependencies SmartHitTest

The root class here uses a class I found in Apple’s documentation for ARKit apps that I wanted to have easy to use myself, and thought others would benefit from it too.

Version
License
Platform
Swift 5.0
Build Status

Medium Article about this CocoaPod

It was found inside the downloadable project on the following page:
https://developer.apple.com/documentation/arkit/handling_3d_interaction_and_ui_controls_in_augmented_reality

I’ve added the license from that project to this repository.

Include this pod in your Podfile like so:

pod 'FocusNode'

Then import FocusNode to your .swift file and add it to your scene as so:

let focusNode = FocusSquare()
sceneView.scene.rootNode.addChildNode(self.focusNode)
focusNode.viewDelegate = sceneView

Check out the Example project or message me on GitHub or twitter if it’s unclear.

The Example project looks like this:

FocusNode Example 1

I DID NOT WRITE A MAJORITY OF THIS CODE MYSELF, MOST OF IT WAS TAKEN DIRECTLY FROM APPLE’S EXAMPLES

Latest podspec

{
    "name": "FocusNode",
    "version": "1.2.1",
    "license": "MIT",
    "summary": "FocusNode creates a node on the ground or wall to show where the centre of the screen hits the active scene.",
    "social_media_url": "http://twitter.com/maxxfrazer",
    "description": "FocusNode allows users to get a pretty good estimate of a hitTest on vertical or horizontal planes,n     with a node being placed at that location with the correct orientation.n     This class is only a slight alteration of Apple's code found at this location:n     https://developer.apple.com/documentation/arkit/handling_3d_interaction_and_ui_controls_in_augmented_reality",
    "homepage": "https://github.com/maxxfrazer/ARKit-FocusNode",
    "authors": "Max Cobb",
    "source": {
        "git": "https://github.com/maxxfrazer/ARKit-FocusNode.git",
        "tag": "1.2.1"
    },
    "documentation_url": "https://medium.com/@maxxfrazer/arkit-pods-focusnode-46343cffe7fe",
    "platforms": {
        "ios": "11.3"
    },
    "swift_versions": "5.0",
    "source_files": "FocusNode/*.swift",
    "dependencies": {
        "SmartHitTest": []
    },
    "swift_version": "5.0"
}

Pin It on Pinterest

Share This