Skip to content

Commit

Permalink
fixed missing math/length registration
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Dec 17, 2024
1 parent a4e0c27 commit dcb9407
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BasicBehaveEngine/BasicBehaveEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {Random} from "./nodes/experimental/Random";
import {Dot} from "./nodes/math/vector/Dot";
import {Rotate2D} from "./nodes/math/vector/Rotate2D";
import {Rotate3D} from "./nodes/math/vector/Rotate3D";
import {VectorLength} from "./nodes/math/vector/VectorLength";
import {IsInfNode} from "./nodes/math/special/IsInfNode";
import {IsNaNNode} from "./nodes/math/special/IsNaNNode";
import {LessThanOrEqualTo} from "./nodes/math/comparison/LessThanOrEqualTo";
Expand Down Expand Up @@ -390,6 +391,7 @@ export class BasicBehaveEngine implements IBehaveEngine {
this.registerBehaveEngineNode("math/dot", Dot);
this.registerBehaveEngineNode("math/rotate2d", Rotate2D);
this.registerBehaveEngineNode("math/rotate3d", Rotate3D);
this.registerBehaveEngineNode("math/length", VectorLength);
this.registerBehaveEngineNode("math/isinf", IsInfNode);
this.registerBehaveEngineNode("math/isnan", IsNaNNode);
this.registerBehaveEngineNode("math/select", Select);
Expand Down
29 changes: 29 additions & 0 deletions src/authoring/AuthoringNodeSpecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3901,6 +3901,35 @@ export const vectorNodes: IAuthoringNode[] = [
]
}
},
{
type: "math/length",
description: "Vector Length",
configuration: [],
input: {
flows: [],
values: [
{
id: "a",
description: "Vector",
types: [
"float2", "float3", "float4"
]
}
]
},
output: {
flows: [],
values: [
{
id: "value",
description: "Length of vector",
types: [
"float"
]
}
]
}
},
{
type: "math/rotate2D",
description: "Vector Rotation",
Expand Down

0 comments on commit dcb9407

Please sign in to comment.