Skip to content

Commit 28b6c72

Browse files
author
Jared Deckard
committed
Last fix flipped plane normal (correctly)
1 parent d644782 commit 28b6c72

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Leap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ Leap.Plane.prototype = {
10101010
var n = this._point1.minus(rayPosition).dot(this.normal());
10111011
var t = n/d;
10121012

1013-
if(t < 0 && this.normal().angleTo(rayDirection) > Math.PI/2) return null;
1013+
if(t < 0 && this.normal().angleTo(rayDirection) < Math.PI/2) return null;
10141014

10151015
var intersect = rayPosition.plus(rayDirection.multiply(t));
10161016
var distance = t*rayDirection.magnitude();

0 commit comments

Comments
 (0)