babylon-navigation-mesh
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -110,2 +110,10 @@ "use strict"; | ||
_projectPointOnPlane: function _projectPointOnPlane(point, plane) { | ||
var proj = point.clone(); | ||
var coef = BABYLON.Vector3.Dot(point, plane.normal) + plane.d; | ||
proj.subtractInPlace(plane.normal.scale(coef)); | ||
return proj; | ||
}, | ||
_getProjectionOnNode: function _getProjectionOnNode(position, node, vertices) { | ||
@@ -124,3 +132,3 @@ | ||
}; | ||
var p = position.projectOnPlane(plane); | ||
var p = this._projectPointOnPlane(position, plane); | ||
// Compute barycentric coordinates (u, v, w) for | ||
@@ -127,0 +135,0 @@ // point p with respect to triangle (a, b, c) |
@@ -111,2 +111,10 @@ "use strict"; | ||
_projectPointOnPlane: function (point, plane) { | ||
var proj = point.clone(); | ||
var coef = BABYLON.Vector3.Dot(point, plane.normal) + plane.d; | ||
proj.subtractInPlace(plane.normal.scale(coef)); | ||
return proj; | ||
}, | ||
_getProjectionOnNode: function(position, node, vertices) { | ||
@@ -125,3 +133,3 @@ | ||
}; | ||
var p = position.projectOnPlane(plane); | ||
var p = this._projectPointOnPlane(position, plane); | ||
// Compute barycentric coordinates (u, v, w) for | ||
@@ -128,0 +136,0 @@ // point p with respect to triangle (a, b, c) |
{ | ||
"name": "babylon-navigation-mesh", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "A toolkit to move on navigation mesh with BABYLONJS", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3394907
29923