fix ray test kF_FilterBackfaces and kF_KeepUnflippedNormal flags
add Demos/RaytestDemo to show/test rayTest fix premake batch files
This commit is contained in:
@@ -208,6 +208,11 @@ void btCollisionWorld::updateAabbs()
|
||||
}
|
||||
|
||||
|
||||
void btCollisionWorld::computeOverlappingPairs()
|
||||
{
|
||||
BT_PROFILE("calculateOverlappingPairs");
|
||||
m_broadphasePairCache->calculateOverlappingPairs(m_dispatcher1);
|
||||
}
|
||||
|
||||
void btCollisionWorld::performDiscreteCollisionDetection()
|
||||
{
|
||||
@@ -217,11 +222,7 @@ void btCollisionWorld::performDiscreteCollisionDetection()
|
||||
|
||||
updateAabbs();
|
||||
|
||||
{
|
||||
BT_PROFILE("calculateOverlappingPairs");
|
||||
m_broadphasePairCache->calculateOverlappingPairs(m_dispatcher1);
|
||||
}
|
||||
|
||||
computeOverlappingPairs();
|
||||
|
||||
btDispatcher* dispatcher = getDispatcher();
|
||||
{
|
||||
@@ -456,6 +457,7 @@ void btCollisionWorld::rayTestSingleInternal(const btTransform& rayFromTrans,con
|
||||
: m_userCallback(user), m_i(i)
|
||||
{
|
||||
m_closestHitFraction = m_userCallback->m_closestHitFraction;
|
||||
m_flags = m_userCallback->m_flags;
|
||||
}
|
||||
virtual bool needsCollision(btBroadphaseProxy* p) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user