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

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -