ios - adding a border around SceneKit node -


i trying highlight selected node in scenekit tap gesture. unfortunately, have not been able accomplish it. best thing change material when node tapped.

let material = key.geometry!.firstmaterial! material.emission.contents = uicolor.blackcolor() 

can suggest way can go add border or outline around object instead of changing color of entire node?

scnnode conforms scnboundingvolume protocol.

this protocol defines getboundingboxmin:max: method.

use minimum , maximum coordinates of bounding box of geometry attached node.

then use scenekit primitive type scngeometryprimitivetypeline draw lines of bounding box. check scngeometryelement.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -