unreal.RigVMFunction_MathVectorSetLength

class unreal.RigVMFunction_MathVectorSetLength(value: Vector = Ellipsis, length: float = 0.0, result: Vector = Ellipsis)

Bases: RigVMFunction_MathVectorBase

Sets the length of a given vector

C++ Source:

  • Plugin: RigVM

  • Module: RigVM

  • File: RigVMFunction_MathVector.h

Editor Properties: (see get_editor_property/set_editor_property)

  • length (float): [Read-Write] The desired length of the vector

  • result (Vector): [Read-Write] The resulting scaled input vector (or 0,0,0 in case the input was also 0,0,0)

  • value (Vector): [Read-Write] The input vector to set the length of

property length: float

[Read-Write] The desired length of the vector

Type:

(float)

property result: Vector

[Read-Only] The resulting scaled input vector (or 0,0,0 in case the input was also 0,0,0)

Type:

(Vector)

property value: Vector

[Read-Write] The input vector to set the length of

Type:

(Vector)