Skip to content

eulerjs API / @eulerjs/core/extend / isActiveEdge

isActiveEdge() ​

ts
function isActiveEdge(
   normal, 
   start, 
   end, 
   neighbourCorner
): boolean;

Defined in: packages/core/src/javascript/collision/triangle.ts:44

Whether the edge from start to end of a triangle with unit normal normal should push on its own: yes on the border of a surface (no neighbour), and where the surface folds away from the triangle's front by more than a few degrees, a ridge; no where it is nearly flat, or folds up into a valley, where the faces either side do all the pushing.

Parameters ​

ParameterTypeDescription
normalVector3-
startVector3-
endVector3-
neighbourCornerVector3 | undefinedThe corner of the triangle on the other side of the edge that isn't on it.

Returns ​

boolean

Released under the MIT License.