SCNNode Bounding Box

BeanzBeanz Member ✭✭

After guys

I am currently working with the iOS ARKit, I am currently trying to implement a piece of code

func getChildBoundingBox() -> (v1: SCNVector3, v2: SCNVector3) {
let firstChild = self.childNodes[0]
return (firstChild.boundingBox.max, firstChild.boundingBox.min)
}

Using the SceneKit code, I should be able to use the

boundingBox.Min and Max

But these are hidden behind

GetBoundingBox()

Which requires refs but cannot pass itself :neutral:

Should I be using Urho instead of SceneKit as according to this API page

Urho.BoundingBox/

These are exposed in the Urho Lib

Answers

Sign In or Register to comment.