Use proper rotation for computing local aabb for convex cast shape.

Propagate hit point from convex caster to world callback [work in progress].
This commit is contained in:
johnmccutchan
2007-12-07 21:22:38 +00:00
parent 68af58c09d
commit 513a055035
7 changed files with 33 additions and 32 deletions

View File

@@ -174,6 +174,7 @@ bool btContinuousConvexCollision::calcTimeOfImpact(
result.m_fraction = lastLambda;
n = pointCollector.m_normalOnBInWorld;
result.m_normal=n;//.setValue(1,1,1);// = n;
result.m_hitPoint = pointCollector.m_pointInWorld;
return true;
}
c = pointCollector.m_pointInWorld;
@@ -189,6 +190,7 @@ bool btContinuousConvexCollision::calcTimeOfImpact(
result.m_fraction = lambda;
result.m_normal = n;
result.m_hitPoint = c;
return true;
}