Unity-Technologies / Unity.Mathematics

The C# math library used in Unity providing vector types and math functions with a shader like syntax
Other
1.38k stars 156 forks source link

Add support for the equivalent of Quaternion.FromToRotation #157

Closed unitystevem closed 4 years ago

unitystevem commented 4 years ago

In "Classic" Unity maths, Quaternions have a method called FromToRotation (https://docs.unity3d.com/ScriptReference/Quaternion.FromToRotation.html). This doesn't appear to be implemented in Unity.Mathematics, and a customer who is porting parts of their code to DOTS has had to resort to using the old Quaternion implementation to achieve this.