SceneNode* myNode = new SceneNode(); myNode->SetBoundingRadius(10.0f);
SceneNode* myNode = new SceneNode(); myNode->SetPosition(Vector3(0.0f, 0.0f, 10.0f)); myNode->SetBoundingRadius(5.0f); // Test if the node is within the camera's view frustum if (camera->IsSphereInsideFrustum(myNode->GetPosition(), myNode->GetBoundingRadius())) { // Draw the node myNode->Draw(); }These code examples are using the SceneNode class, which is typically found in 3D rendering engines like OGRE, Irrlicht, or Unity.