Gems/ScriptCanvas
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -254,7 +254,7 @@ namespace ScriptCanvas
|
||||
{
|
||||
Vector2Type r = to - from;
|
||||
float length = r.NormalizeWithLength();
|
||||
r.SetLength(optionalScale);
|
||||
r.SetLength(static_cast<float>(optionalScale));
|
||||
return std::make_tuple(r, length);
|
||||
}
|
||||
SCRIPT_CANVAS_GENERIC_FUNCTION_NODE_WITH_DEFAULTS(DirectionTo, DirectionToDefaults, k_categoryName, "{49A2D7F6-6CD3-420E-8A79-D46B00DB6CED}", "Returns a direction vector between two points and the distance between them, by default the direction will be normalized, but it may be optionally scaled using the Scale parameter if different from 1.0", "From", "To", "Scale");
|
||||
|
||||
@@ -340,7 +340,7 @@ namespace ScriptCanvas
|
||||
{
|
||||
Vector3Type r = to - from;
|
||||
float length = r.NormalizeWithLength();
|
||||
r.SetLength(optionalScale);
|
||||
r.SetLength(static_cast<float>(optionalScale));
|
||||
return std::make_tuple(r, length);
|
||||
}
|
||||
SCRIPT_CANVAS_GENERIC_FUNCTION_NODE_WITH_DEFAULTS(DirectionTo, DirectionToDefaults, k_categoryName, "{28FBD529-4C9A-4E34-B8A0-A13B5DB3C331}", "Returns a direction vector between two points and the distance between them, by default the direction will be normalized, but it may be optionally scaled using the Scale parameter if different from 1.0", "From", "To", "Scale");
|
||||
|
||||
@@ -225,7 +225,7 @@ namespace ScriptCanvas
|
||||
{
|
||||
Vector4Type r = to - from;
|
||||
float length = r.NormalizeWithLength();
|
||||
r.SetLength(optionalScale);
|
||||
r.SetLength(static_cast<float>(optionalScale));
|
||||
return std::make_tuple(r, length);
|
||||
}
|
||||
SCRIPT_CANVAS_GENERIC_FUNCTION_NODE_WITH_DEFAULTS(DirectionTo, DirectionToDefaults, k_categoryName, "{463762DE-E541-4AFE-80C2-FED1C5273319}", "Returns a direction vector between two points and the distance between them, by default the direction will be normalized, but it may be optionally scaled using the Scale parameter if different from 1.0", "From", "To", "Scale");
|
||||
|
||||
Reference in New Issue
Block a user