Fixes for FPU exceptions, thanks to Phil Knight for reporting and John McCutchan for fix/workarounds.
Added new cluster collision methods for soft bodies, thanks to Nathanael Presson. Enable/disable textures/shadows for specific demos.
This commit is contained in:
@@ -1723,7 +1723,9 @@ void btSoftBody::updateNormals()
|
||||
}
|
||||
for(i=0,ni=m_nodes.size();i<ni;++i)
|
||||
{
|
||||
m_nodes[i].m_n.normalize();
|
||||
btScalar len = m_nodes[i].m_n.length();
|
||||
if (len>SIMD_EPSILON)
|
||||
m_nodes[i].m_n /= len;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user