From 429287def3257b60f1d8b7f5d342b95f8cf84637 Mon Sep 17 00:00:00 2001 From: hybridherbst Date: Fri, 22 Nov 2024 14:54:22 +0100 Subject: [PATCH] add math/clamp node --- src/BasicBehaveEngine/BasicBehaveEngine.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BasicBehaveEngine/BasicBehaveEngine.ts b/src/BasicBehaveEngine/BasicBehaveEngine.ts index 3689b53..153127a 100644 --- a/src/BasicBehaveEngine/BasicBehaveEngine.ts +++ b/src/BasicBehaveEngine/BasicBehaveEngine.ts @@ -34,6 +34,7 @@ import {Divide} from "./nodes/math/arithmetic/Divide"; import {Remainder} from "./nodes/math/arithmetic/Remainder"; import {Min} from "./nodes/math/arithmetic/Min"; import {Max} from "./nodes/math/arithmetic/Max"; +import {Clamp} from "./nodes/math/arithmetic/Clamp"; import {DegreeToRadians} from "./nodes/math/trigonometry/DegreeToRadians"; import {RadiansToDegrees} from "./nodes/math/trigonometry/RadiansToDegrees"; import {Sine} from "./nodes/math/trigonometry/Sine"; @@ -339,6 +340,7 @@ export class BasicBehaveEngine implements IBehaveEngine { this.registerBehaveEngineNode("math/rem", Remainder); this.registerBehaveEngineNode("math/min", Min); this.registerBehaveEngineNode("math/max", Max); + this.registerBehaveEngineNode("math/clamp", Clamp); this.registerBehaveEngineNode("math/rad", DegreeToRadians); this.registerBehaveEngineNode("math/deg", RadiansToDegrees); this.registerBehaveEngineNode("math/sin", Sine);