mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Fix SceneContainer ray test
This commit is contained in:
parent
596d13f9a4
commit
7e5eacc43d
1 changed files with 8 additions and 4 deletions
|
|
@ -1047,11 +1047,13 @@ bool SceneContainer::_castRay( U32 type, const Point3F& start, const Point3F& en
|
||||||
|
|
||||||
if (simpleCase)
|
if (simpleCase)
|
||||||
{
|
{
|
||||||
foundCandidate = foundCandidate && SceneRayHelper::castInBinSimple(rayParams, rayQuery, mBinArray, info, del);
|
if (SceneRayHelper::castInBinSimple(rayParams, rayQuery, mBinArray, info, del))
|
||||||
|
foundCandidate = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foundCandidate = foundCandidate && SceneRayHelper::castInBins(rayParams, rayQuery, mBinArray, info, del);
|
if (SceneRayHelper::castInBins(rayParams, rayQuery, mBinArray, info, del))
|
||||||
|
foundCandidate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
mSearchInProgress = false;
|
mSearchInProgress = false;
|
||||||
|
|
@ -1171,11 +1173,13 @@ bool SceneContainer::collideBox(const Point3F &start, const Point3F &end, U32 ma
|
||||||
|
|
||||||
if (simpleCase)
|
if (simpleCase)
|
||||||
{
|
{
|
||||||
foundCandidate = foundCandidate && SceneRayHelper::castInBinSimple(rayParams, rayQuery, mBinArray, info, BoxRayCallbackDelegate());
|
if (SceneRayHelper::castInBinSimple(rayParams, rayQuery, mBinArray, info, BoxRayCallbackDelegate()))
|
||||||
|
foundCandidate = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foundCandidate = foundCandidate && SceneRayHelper::castInBins(rayParams, rayQuery, mBinArray, info, BoxRayCallbackDelegate());
|
if (SceneRayHelper::castInBins(rayParams, rayQuery, mBinArray, info, BoxRayCallbackDelegate()))
|
||||||
|
foundCandidate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
mSearchInProgress = false;
|
mSearchInProgress = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue