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
| Parameter | Type | Description |
|---|---|---|
normal | Vector3 | - |
start | Vector3 | - |
end | Vector3 | - |
neighbourCorner | Vector3 | undefined | The corner of the triangle on the other side of the edge that isn't on it. |
Returns
boolean
