c# - How to convert Vector3 to Quaternion? -
trying figure out how convert vector3 quaternion. ok if need update said value?
you can quite convert vector3 quaternion using, example, this:
quaternion quaternion = quaternion.euler(v.x, v.y, v.z);
so, example, that's
quaternion rot = quaternion.euler(v3.x, v3.y, v3.z);
that should it!
Comments
Post a Comment