开发者

Find nearest rotation for cube

开发者 https://www.devze.com 2023-03-08 06:28 出处:网络
I have c开发者_JAVA百科amera that look at cube from above. I can rotate cube so cube can have rotation values like z=258.18594 x=1. I need advice how to get nearest rotation with cube stand on ground

I have c开发者_JAVA百科amera that look at cube from above. I can rotate cube so cube can have rotation values like z=258.18594 x=1. I need advice how to get nearest rotation with cube stand on ground and camera see top face.


Look for Quaternion mathematics and Quaternion interpolation. This will make the task rather easy.

See also Nearest Neighbours using Quaternions

0

精彩评论

暂无评论...
验证码 换一张
取 消