An Unity Library for interacting UnityARKitPlugin.
- First thing first. Drag ArKitKat folder into your assets folder.
- ArKitKat is using UnityARKitPlugin, so make sure you have it imported.
using UnityEngine.XR.iOS;
using ArKitKat;
Get ArPlaneAnchor info easier
return | method | parameters | explain |
---|---|---|---|
Vector3 | GetRealPosition | ARPlaneAnchor | Return a globle position of the plane where it really is |
Vector3 | GetPosition | ARPlaneAnchor | Return a globle position of the plane where it spawned |
Quaternion | GetRotation | ARPlaneAnchor | Return rotation of the plane |
Build-in debug tool which shows you ArPlaneAnchor in scenes
return | method | parameters | explain |
---|---|---|---|
void | VirtualAnchor | string color,ARPlaneAnchor | spawn a point in scene |
void | VirtualAnchor | string color,Vector3 | spawn a point in scene |
void | VirtualAnchor | string color,Transform | spawn a point in scene |
void | VirtualAnchor | string color,Matrix4x4 | spawn a point in scene |
An implement of ArKitKat. It generates vertical plane based on horizontal plane. (Since Arkit not support vertical plane detection yet)
please add UnityARUtility.cs mf.gameObject.tag = "HoriPlane";
to UpdatePlaneWithAnchorTransform method.
This script can detect a plane faster than ever! It uses raw Arkit point to generate plane.
PRO:
- Detect a plane in a sec!
- Using Calculus III!
CON:
- Only detect one plane
- If more than one plane exist, it will be broken
If you are looking for something that give you a plane before the stable plane spawn, this is the one.
Dependency for FastDetection. Found the rust version at this blog. I ported to c# version for this project.
You have 2 versions to choice. Double(64)precision and float(32)precision. Unity does not provide Vector3 x double operation, so if you are using double version, Please download this lib and copy to your asset
The MIT License(MIT) Copyright(c) 2017 Borgmon.me