Interface SCNBoundingVolume

    • Method Detail

      • getBoundingBoxMinMax

        boolean getBoundingBoxMinMax​(SCNVector3 min,
                                     SCNVector3 max)
        getBoundingBoxMin:max: Fill the min and max vectors with the min and max vertex of the bounding box. the returned bounding box is in local space of the receiver.
        Parameters:
        min - A pointer to a SCNVector3 to store the min vertex of the bounding box into.
        max - A pointer to a SCNVector3 to store the max vertex of the bounding box into.
      • getBoundingSphereCenterRadius

        boolean getBoundingSphereCenterRadius​(SCNVector3 center,
                                              org.moe.natj.general.ptr.NFloatPtr radius)
        getBoundingSphereCenter:radius: Fill the center vector with the center of the bounding sphere and store the radius of the bounding sphere in 'radius'. the returned bounding sphere is in local space of the receiver.
        Parameters:
        center - A pointer to a SCNVector3 to store the center of the bounding sphere into.
        radius - A pointer to a CGFloat to store the radius of the bounding sphere into.
      • setBoundingBoxMinMax

        void setBoundingBoxMinMax​(SCNVector3 min,
                                  SCNVector3 max)
        setBoundingBoxMin:max: Override the receiver bounding box with the min and max vectors provided (in local space of the receiver). Passing nil as arguments will recompute the original bounding box of the receiver.
        Parameters:
        min - A pointer to a SCNVector3 representing the min vertex of the desired bounding box.
        max - A pointer to a SCNVector3 representing the max vertex of the desired bounding box.