Skip to content

Instantly share code, notes, and snippets.

View Volksfeld's full-sized avatar
📱
Mobile Developer

Júlio César Mussi Volksfeld

📱
Mobile Developer
  • Kinvo
  • Salvador - BA
View GitHub Profile
PODS:
- boost-for-react-native (1.63.0)
- BVLinearGradient (2.5.6):
- React
- DoubleConversion (1.1.6)
- FBLazyVector (0.61.5)
- FBReactNativeSpec (0.61.5):
- Folly (= 2018.10.22.00)
- RCTRequired (= 0.61.5)
- RCTTypeSafety (= 0.61.5)
@Volksfeld
Volksfeld / ViewController.swift
Created October 19, 2019 19:35
AR Portal Scene created with NSSBoxes.
func setupScene() {
let node = SCNNode()
node.position = SCNVector3.init(0, 0, 0)
let leftWall = createBox(isDoor: false)
leftWall.position = SCNVector3.init((-length / 2) + width, 0, 0)
leftWall.eulerAngles = SCNVector3.init(0, 180.0.degreesToRadians, 0)
let rightWall = createBox(isDoor: false)
rightWall.position = SCNVector3.init((length / 2) - width, 0, 0)