A bounding volume that forms a sphere around a single point. More...
#import <CC3BoundingVolumes.h>
When applied to a node, the center of the sphere is the node's center of geometry, and this class indicates that the node intersects the frustum if any part of the sphere intersects the frustum.
The radius of the sphere must cover the node, and is scaled automatically to match the globalScale of the node. For meshes, the center of geometry and local radius are calculated from the vertex locations. For other nodes, the center of gravity and radius can be set directly within the bounding volume via their respective properties.
- (GLfloat) globalRadius [read, assign] |
The radius that encompasses the extent of the node in the global coordinate system, as measured from the global center of geometry of this instance.
- (GLfloat) radius [read, write, assign] |
The radius that encompasses the extent of the node in the node's local coordinate system, as measured from the center of geometry of this instance.