339 lines
9.3 KiB
Plaintext
339 lines
9.3 KiB
Plaintext
Availability:NoPublish
|
|
Title:UKismetMathLibrary Nodes
|
|
Crumbs:
|
|
Description:Overview of the Blueprint math nodes.
|
|
|
|
[EXCERPT:SelectFloat]
|
|
|
|
|
|
The "Select Float" node allows you to pick one of two float values with a single True/False condition.
|
|
|
|
When utilized, this node looks at the Boolean input and picks one of the two float values to output.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
A - Takes in a float value for this node to select from.
|
|
B - Takes in a second float value for this node to select from.
|
|
Pick A - Takes in a boolean value used to indicate which float value should be selected.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs A's value if "Pick A" was true, otherwise it outputs the value of B.
|
|
|
|
[/EXCERPT:SelectFloat]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:SelectInt]
|
|
|
|
|
|
The "Select Int" node allows you to pick one of two int values with a single True/False condition.
|
|
|
|
When utilized, this node looks at the Boolean input and picks one of the two int values to output.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
A - Takes in an int value for this node to select from.
|
|
B - Takes in a second int value for this node to select from.
|
|
Pick A - Takes in a boolean value used to indicate which int value should be selected.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs A's value if "Pick A" was true, otherwise it outputs the value of B.
|
|
|
|
[/EXCERPT:SelectInt]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:SelectColor]
|
|
|
|
|
|
The "Select Color" node allows you to pick one of two colors with a single True/False condition.
|
|
|
|
When utilized, this node looks at the Boolean input and picks one of the two colors to output.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
A - Takes in a color for this node to select from.
|
|
B - Takes in a second color for this node to select from.
|
|
Pick A - Takes in a boolean value used to indicate which color should be selected.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs A's color if "Pick A" was true, otherwise it outputs the color of B.
|
|
|
|
[/EXCERPT:SelectColor]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:SelectRotator]
|
|
|
|
|
|
The "Select Rotator" node allows you to pick one of two rotators with a single True/False condition.
|
|
|
|
When utilized, this node looks at the Boolean input and picks one of the two rotators to output.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
A - Takes in a rotator for this node to select from.
|
|
B - Takes in a second rotator for this node to select from.
|
|
Pick A - Takes in a boolean value used to indicate which rotator should be selected.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs A's rotator if "Pick A" was true, otherwise it outputs the rotator from B.
|
|
|
|
[/EXCERPT:SelectRotator]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:SelectTransform]
|
|
|
|
|
|
The "Select Transform" node allows you to pick one of two transforms with a single True/False condition.
|
|
|
|
When utilized, this node looks at the Boolean input and picks one of the two transforms to output.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
A - Takes in a transform for this node to select from.
|
|
B - Takes in a second transform for this node to select from.
|
|
Pick A - Takes in a boolean value used to indicate which transform should be selected.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs A's transform if "Pick A" was true, otherwise it outputs the transform from B.
|
|
|
|
[/EXCERPT:SelectTransform]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:SelectVector]
|
|
|
|
|
|
The "Select Vector" node allows you to pick one of two vectors with a single True/False condition.
|
|
|
|
When utilized, this node looks at the Boolean input and picks one of the two vectors to output.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
A - Takes in a vector for this node to select from.
|
|
B - Takes in a second vector for this node to select from.
|
|
Pick A - Takes in a boolean value used to indicate which vector should be selected.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs A's vector if "Pick A" was true, otherwise it outputs the vector from B.
|
|
|
|
[/EXCERPT:SelectVector]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:SelectObject]
|
|
|
|
|
|
The "Select Object" node allows you to pick one of two objects with a single True/False condition.
|
|
|
|
When utilized, this node looks at the Boolean input and picks one of the two objects to output.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
A - Takes in an object for this node to select from.
|
|
B - Takes in a second object for this node to select from.
|
|
Pick A - Takes in a boolean value used to indicate which object should be selected.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs A's object if "Pick A" was true, otherwise it outputs the object from B.
|
|
|
|
[/EXCERPT:SelectObject]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:SelectString]
|
|
|
|
|
|
The "Select String" node allows you to pick one of two strings with a single True/False condition.
|
|
|
|
When utilized, this node looks at the Boolean input and picks one of the two strings to output.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
A - Takes in a string for this node to select from.
|
|
B - Takes in a second string for this node to select from.
|
|
Pick A - Takes in a boolean value used to indicate which string should be selected.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs A's string if "Pick A" was true, otherwise it outputs the string from B.
|
|
|
|
[/EXCERPT:SelectString]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:FInterpTo]
|
|
|
|
|
|
The "FInterp to" (float interpolation) node allows you to smoothly transition a float value to a different target value. When utilized, this node will take your current float value and (based on a time-step and speed) output a new float approaching (or equal to) the target value.
|
|
|
|
NOTE: That the output value should be used as the "Current" input for the following frame. If the input value sits unchanged, then this node will make the same step each frame (resulting in the same output every time, failing to ever reach the "Target" value). If a Speed of 0 is given, then the result will be the target.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
Current - Takes a current float value for this node to interpolate from.
|
|
Target - Takes a float value for this node to interpolate to.
|
|
Delta Time - Takes in a float time-step value used to move forward the interpolation.
|
|
Interp Speed - Takes in a float value used to indicate how fast the interpolation should step to the Target value.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs an interpolated float value approaching (or equal to) the Target value.
|
|
|
|
[/EXCERPT:FInterpTo]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:RInterpTo]
|
|
|
|
|
|
The "RInterp to" (Rotator interpolation) node allows you to smoothly transition from one Rotator to another. When utilized, this node will take your current Rotator and (based on a time-step and speed) output a new Rotator approaching (or equal to) the target one.
|
|
|
|
NOTE: That the output value should be used as the "Current" input for the following frame. If the input value sits unchanged, then this node will make the same step each frame (resulting in the same output every time, failing to ever reach the "Target" value). If a Speed of 0 is given, then the result will be the target.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
Current - Takes a current Rotator for this node to interpolate from.
|
|
Target - Takes a Rotator for this node to interpolate to.
|
|
Delta Time - Takes in a float time-step value used to move forward the interpolation.
|
|
Interp Speed - Takes in a float value used to indicate how fast the interpolation should step to the Target value.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs an interpolated Rotator approaching (or equal to) the Target.
|
|
|
|
[/EXCERPT:RInterpTo]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:TInterpTo]
|
|
|
|
|
|
The "TInterp to" (Transform interpolation) node allows you to smoothly transition from one Transform to another. When utilized, this node will take your current Transform and (based on a time-step and speed) output a new Transform approaching (or equal to) the target one.
|
|
|
|
NOTE: That the output value should be used as the "Current" input for the following frame. If the input value sits unchanged, then this node will make the same step each frame (resulting in the same output every time, failing to ever reach the "Target" value). If a Speed of 0 is given, then the result will be the target.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
Current - Takes a current Transform for this node to interpolate from.
|
|
Target - Takes a Transform for this node to interpolate to.
|
|
Delta Time - Takes in a float time-step value used to move forward the interpolation.
|
|
Interp Speed - Takes in a float value used to indicate how fast the interpolation should step to the Target value.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs an interpolated Transform approaching (or equal to) the Target.
|
|
|
|
[/EXCERPT:TInterpTo]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:VInterpTo]
|
|
|
|
|
|
The "VInterp to" (Vector interpolation) node allows you to smoothly transition from one Vector to another. When utilized, this node will take your current Vector and (based on a time-step and speed) output a new Vector approaching (or equal to) the target one.
|
|
|
|
NOTE: That the output value should be used as the "Current" input for the following frame. If the input value sits unchanged, then this node will make the same step each frame (resulting in the same output every time, failing to ever reach the "Target" value). If a Speed of 0 is given, then the result will be the target. If a Speed of 0 is given, then the result will be the target.
|
|
|
|
|
|
---
|
|
|
|
**Input**
|
|
|
|
Current - Takes a current Vector for this node to interpolate from.
|
|
Target - Takes a Vector for this node to interpolate to.
|
|
Delta Time - Takes in a float time-step value used to move forward the interpolation.
|
|
Interp Speed - Takes in a float value used to indicate how fast the interpolation should step to the Target value.
|
|
|
|
---
|
|
|
|
**Output**
|
|
|
|
Return Value - This outputs an interpolated Vector approaching (or equal to) the Target.
|
|
|
|
[/EXCERPT:VInterpTo]
|
|
|
|
|
|
|
|
|
|
[EXCERPT:BooleanAND]
|
|
|
|
Take in any number of boolean values an only returns "True" if all the inputs are true, otherwise, returns "False."
|
|
|
|
[/EXCERPT:BooleanAND]
|