Sorry, we don't support your browser.  Install a modern browser

setRotation function but for quaternions#2276

Hello! I have a very niche problem that can only be solved with a new API function. I’m making something to help you make and pose minis, for which I use quaternions to rotate vectors and add rotations together. The problem is that when I add all of the relevant rotations and I need to apply them to the object, it requires eulerAngles which have some problems and break the rotations. I know that Unity allows you to rotate an object by giving it a quaternion. Would it be possible to add a setRotationAsQuaternion function that takes a quaternion instead of a vector (maybe as a {x,y,z,w} table or a 4 length array)? Thank you!

14 days ago