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

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -