Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1043

Node Rotation and Quaternions

$
0
0

Anyone know of a simplied explanation of how to work with the DzQuat() to set nodes at different angles? I have a script I wrote long ago that adds lights to a scene and sets their rotations at increments of 90 degrees around the Y axis, and to do that defined a new DzQuat() for each light, did a setValue(1, 1.57) for example to get a 90 degree rotation, then used that DzQuat as the parameter for a setLocalRot() function, and all is fine. 

But I'm wondering if you want to get more complex and set, say, multiple rotations on different axes, I can't recall how to set the DzQuat parameters to implement that.

Anyone? 


Viewing all articles
Browse latest Browse all 1043

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>