Updates to track more consistant naming scheme in simgear.
This commit is contained in:
parent
152a5902c8
commit
94b78153eb
1 changed files with 6 additions and 2 deletions
|
@ -222,7 +222,9 @@ void FGHitList::IntersectBranch( ssgBranch *branch, sgdMat4 m,
|
|||
center[2] = fcenter[2];
|
||||
sgdXformPnt3( center, m ) ;
|
||||
double radius_sqd = bsphere->getRadius() * bsphere->getRadius();
|
||||
if ( sgdPointLineDistSquared( center, orig, dir ) < radius_sqd ) {
|
||||
if ( sgdClosestPointToLineDistSquared( center, orig, dir ) <
|
||||
radius_sqd )
|
||||
{
|
||||
// possible intersections
|
||||
if ( kid->isAKindOf ( ssgTypeBranch() ) ) {
|
||||
sgdMat4 m_new;
|
||||
|
@ -295,7 +297,9 @@ void FGHitList::IntersectCachedLeaf( sgdMat4 m,
|
|||
sgdSetMat4( m, fxform );
|
||||
sgdXformPnt3( center, m );
|
||||
|
||||
if ( sgdPointLineDistSquared( center, orig, dir ) < radius*radius ) {
|
||||
if ( sgdClosestPointToLineDistSquared( center, orig, dir ) <
|
||||
radius*radius )
|
||||
{
|
||||
IntersectLeaf( (ssgLeaf *)last_hit(), m, orig, dir );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue