Fix normals being lost in batch raycaster

This commit is contained in:
john.mccutchan committed 2008-04-08 22:47:36 +00:00
1 parent 2ee866e37f
commit 7066c43d79
1 file changed
+2 -2
@@ -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);