add_dot_product_node
Add a Dot Product node between two vectors in a Blueprint to determine if something is in front or behind an actor. Outputs 1 (parallel), 0 (perpendicular), or -1 (opposite).
Instructions
Add a 'Dot Product' node between two vectors.
Ch.14: Dot product = X1X2 + Y1Y2 + Z1*Z2. Returns 1 if parallel, 0 if perpendicular, -1 if opposite. Useful for checking if something is in front of/behind actor.
Args: blueprint_name: Blueprint name node_position: Optional [X, Y] graph position
KB: see knowledge_base/26_CHAOS_PHYSICS_AND_DESTRUCTION.md#overview Example: add_dot_product_node(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |