Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

Frustum plane undefined

$
0
0

Hi everybody,

When I use 2.5 beta, on some projects I get a frustumPlanes[p] is undefined  error, in this method :

The problem doesn't occur in 2.4 final. I think it first occured from commit 3afb8d05108e032c285136a216bf98cb718419da "Added camera.isInFrustum and camera.isCompletelyInFrustum"

BoundingBox.IsCompletelyInFrustum = function (boundingVectors, frustumPlanes) {
  for (var p = 0; p < 6; p++) {
    for (var i = 0; i < 8; i++) {
      if (frustumPlanes[p].dotCoordinate(boundingVectors[i]) < 0) {
        return false;
      }
    }
  }
  return true;
};

For now I didn't manage to figure out what the difference is between projects where this error occur and those where there is no problem.


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>