问题
SCNVector3 min, max;
[self getBoundingBoxMin:&min max:&max];
the returned min and max value it's base on raw size
回答1:
You can ask for the bounding box of the parentNode
for the node's transform to be taken into account.
回答2:
SCNVector3 min, max;
[self getBoundingBoxMin:&min max:&max];
SCNVector3 cMin = [self convertVector:min toNode:rootNode];
SCNVector3 cMax = [self convertVector:max toNode:rootNode];
来源:https://stackoverflow.com/questions/57470541/how-to-get-boundingbox-after-rotation-scale