예제 #1
0
파일: MeshNode.cpp 프로젝트: Knio/eRacer
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();
}
예제 #2
0
const BoundingBoxf& SceneNode::GetWorldBoundingBox() const
{
	UpdateWorldBounds();
	return mWorldBounds;
}