- Home /
Question by
Mockarutan · Dec 01, 2019 at 11:29 AM ·
c#dots
DOTS/ECS. LocalToWorld to quaternion
This there a better way to get the global rotation quaternion from the LocalToWorld matrix than this:
var globalRoation = quaternion.LookRotation(localToWorld.Forward, localToWorld.Up);
It feels very strange to always to always do that calculation whenever I need the rotation.
Comment