A bounding volume that defines a 2D bounding area for a node, and checks that bounding area against a given 2D bounding box, which is typically the bounding box of the CC3Layer, instead of the camera frustum. More...
#import <CC3BoundingVolumes.h>
Public Member Functions | |
(BOOL) | - doesIntersectBounds: |
A bounding volume that defines a 2D bounding area for a node, and checks that bounding area against a given 2D bounding box, which is typically the bounding box of the CC3Layer, instead of the camera frustum.
This is useful for, and only applicable to, nodes that draw 2D content, such as CC3Billboards,
By default, instances of CC3NodeBoundingArea return NO in the doesIntersectFrustum: method, so nodes with this bounding volume will not be drawn when 3D nodes with local content are drawn. Instead, CC3NodeBoundingArea adds the doesIntersectBounds: method, which is invokded to test a 2D node boundary against a 2D bounding box.
- (BOOL) doesIntersectBounds: | (CGRect) | bounds |
Returns whether this bounding volume intersects the specfied bounding rectangle.
This default implementation always returns YES. Subclasses will override appropriately.
This method is invoked automatically by nodes with 2D content, whenever it needs to determine whether or not it should be drawn.