Fix normals being lost in batch raycaster
This commit is contained in:
@@ -97,8 +97,8 @@ bool SpuSubsimplexRayCast::calcTimeOfImpact(const btTransform& fromRay,
|
|||||||
while ( (dist2 > epsilon) && maxIter--)
|
while ( (dist2 > epsilon) && maxIter--)
|
||||||
{
|
{
|
||||||
p = supportPoint(bXform, m_shapeTypeB, m_shapeB, m_convexDataB, v);
|
p = supportPoint(bXform, m_shapeTypeB, m_shapeB, m_convexDataB, v);
|
||||||
btVector3 n = v.normalized();
|
btVector3 supportunit = v.normalized();
|
||||||
p += m_marginB * n;
|
p += m_marginB * supportunit;
|
||||||
w = x - p;
|
w = x - p;
|
||||||
|
|
||||||
btScalar VdotW = v.dot(w);
|
btScalar VdotW = v.dot(w);
|
||||||
|
|||||||
Reference in New Issue
Block a user