Fix normals being lost in batch raycaster

This commit is contained in:
john.mccutchan
2008-04-08 22:47:36 +00:00
parent 2ee866e37f
commit 7066c43d79

View File

@@ -97,8 +97,8 @@ bool SpuSubsimplexRayCast::calcTimeOfImpact(const btTransform& fromRay,
while ( (dist2 > epsilon) && maxIter--)
{
p = supportPoint(bXform, m_shapeTypeB, m_shapeB, m_convexDataB, v);
btVector3 n = v.normalized();
p += m_marginB * n;
btVector3 supportunit = v.normalized();
p += m_marginB * supportunit;
w = x - p;
btScalar VdotW = v.dot(w);