ray hitnormal is already in worldspace for convex objects, but not for trianglemeshes (ray is transformed in local space)

This commit is contained in:
ejcoumans
2007-07-27 23:52:33 +00:00
parent c57c863112
commit a1fabc4b91
2 changed files with 14 additions and 5 deletions

View File

@@ -233,7 +233,8 @@ void btCollisionWorld::objectQuerySingle(const btConvexShape* castShape,const bt
castResult.m_fraction
);
resultCallback.AddSingleResult(localRayResult);
bool normalInWorldSpace = true;
resultCallback.AddSingleResult(localRayResult, normalInWorldSpace);
}
}
@@ -282,7 +283,8 @@ void btCollisionWorld::objectQuerySingle(const btConvexShape* castShape,const bt
hitNormalLocal,
hitFraction);
return m_resultCallback->AddSingleResult(rayResult);
bool normalInWorldSpace = false;
return m_resultCallback->AddSingleResult(rayResult,normalInWorldSpace);
}