bullet build warning fix replacing by C++ casting
This commit is contained in:
parent
9928cf726f
commit
ba150e8659
@ -78,7 +78,7 @@ void btCompoundShape::addChildShape(const btTransform& localTransform,btCollisio
|
||||
{
|
||||
const btDbvtVolume bounds=btDbvtVolume::FromMM(localAabbMin,localAabbMax);
|
||||
int index = m_children.size();
|
||||
child.m_node = m_dynamicAabbTree->insert(bounds,(void*)index);
|
||||
child.m_node = m_dynamicAabbTree->insert(bounds,reinterpret_cast<void*>(index));
|
||||
}
|
||||
|
||||
m_children.push_back(child);
|
||||
@ -312,7 +312,7 @@ void btCompoundShape::createAabbTreeFromChildren()
|
||||
child.m_childShape->getAabb(child.m_transform,localAabbMin,localAabbMax);
|
||||
|
||||
const btDbvtVolume bounds=btDbvtVolume::FromMM(localAabbMin,localAabbMax);
|
||||
child.m_node = m_dynamicAabbTree->insert(bounds,(void*)index);
|
||||
child.m_node = m_dynamicAabbTree->insert(bounds,reinterpret_cast<void*>(index));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user