Description
Makes a quaternion from two vectors, representing the shortest rotation between the two vectors.
Information
| Plugin | RigVM |
| Category | Math|Quaternion |
| Tags | Make,Construct |
| Type | FRigVMFunction_MathQuaternionFromTwoVectors |
Inputs
| Name | Description | Permitted Types | Default Value |
|---|---|---|---|
| A | A vector representing a direction prior to rotation | Vector | (X=1.000000,Y=0.000000,Z=0.000000) |
| B | A vector representing a direction after a rotation | Vector | (X=1.000000,Y=0.000000,Z=0.000000) |
Outputs
| Name | Description | Permitted Types | Default Value |
|---|---|---|---|
| Result | The quaternion representing the rotation from A to B | Quat |