unreal.RigVMFunction_MathQuaternionFromXVector¶
- class unreal.RigVMFunction_MathQuaternionFromXVector(value: Vector = Ellipsis, result: Quat = Ellipsis)¶
Bases:
RigVMFunction_MathQuaternionBaseReturn the Quaternion orientation corresponding to the direction in which the vector points. Similar to the blueprint “Rotation From X Vector” version, returns a result without roll such that it preserves the up vector. note: If you don’t care about preserving the up vector and just want the most direct rotation, you can use the faster “From Two Vectors”
C++ Source:
Plugin: RigVM
Module: RigVM
File: RigVMFunction_MathQuaternion.h
Editor Properties: (see get_editor_property/set_editor_property)
result(Quat): [Read-Write] The resulting rotationvalue(Vector): [Read-Write] The input direction vector