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

ios - Memory not freeing up after popping viewcontroller using ARC -

Java JSoup error fetching URL -

webstorm - PhpStorm file cache conflict with TypeScript compiler -