I am importing a simple dae file. I want some of the nodes to be a subclass of SCNNode - MySCNNode.
MySCNNode *node = [scnView.scene.rootNode childNodeWithName:@"Box1" recursively:YES];
//additional initialization goes here
Tried casting to (MySCNNode *) too.
But this is not working. "node" is still an SCNNode. Why?
I need to add a few properties and methods to SCNNode. So I subclassed SCNNode. I want the nodes from the scene(imported from a dae) to have the properties and behaviour. The nodes from the scene is always SCNNode. I want it to be of class MySCNNode.