unreal.RigVMFunction_MathQuaternionFromTwoVectors

class unreal.RigVMFunction_MathQuaternionFromTwoVectors(a: Vector = Ellipsis, b: Vector = Ellipsis, result: Quat = Ellipsis)

Bases: RigVMFunction_MathQuaternionBase

Makes a quaternion from two vectors, representing the shortest rotation between the two vectors.

C++ Source:

  • Plugin: RigVM

  • Module: RigVM

  • File: RigVMFunction_MathQuaternion.h

Editor Properties: (see get_editor_property/set_editor_property)

  • a (Vector): [Read-Write] A vector representing a direction prior to rotation

  • b (Vector): [Read-Write] A vector representing a direction after a rotation

  • result (Quat): [Read-Write] The quaternion representing the rotation from A to B

property a: Vector

[Read-Write] A vector representing a direction prior to rotation

Type:

(Vector)

property b: Vector

[Read-Write] A vector representing a direction after a rotation

Type:

(Vector)

property result: Quat

[Read-Only] The quaternion representing the rotation from A to B

Type:

(Quat)