Example #1
0
void MeshNode::Init(Mesh* mesh){
	//this method can only be called once
	assert(!initialized);
	assert(NULL != mesh);
	
	mesh_ = mesh;

	//D3DXCreateSphere(GraphicsLayer::GetInstance()->GetDevice(), mesh_->localBounds.radius, 10,10, &boundsMesh_,NULL);
	
	initialized = true;
	UpdateWorldBounds();
}
Example #2
0
const BoundingBoxf& SceneNode::GetWorldBoundingBox() const
{
	UpdateWorldBounds();
	return mWorldBounds;
}